-
Bug
-
Resolution: Duplicate
-
Normal
-
None
-
None
-
2
-
---
-
---
Description of problem:
In section https://docs.openshift.com/container-platform/4.11/monitoring/configuring-the-monitoring-stack.html#enabling-query-logging-for-thanos-querier_configuring-the-monitoring-stack the command token=`oc sa get-token prometheus-k8s -n openshift-monitoring` fails with "Command "get-token" is deprecated, and will be removed in the future version. Use oc create token instead. error: could not find a service account token for service account "prometheus-k8s""
Version-Release number of selected component (if applicable):
4.11 and 4.12
How reproducible:
All the time (I verified on 4.12) though someone else stated they observed the same on 4.11
Steps to Reproduce:
1. Run token=`oc sa get-token prometheus-k8s -n openshift-monitoring`
Actual results:
Command "get-token" is deprecated, and will be removed in the future version. Use oc create token instead. error: could not find a service account token for service account "prometheus-k8s"
Expected results:
UPdated command should be token=`oc create token prometheus-k8s -n openshift-monitoring`
Additional info:
This appears related to https://bugzilla.redhat.com/show_bug.cgi?id=2097346 "k8s 1.24 no longer generating legacy tokens for SA."