Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc get-token is deprecated #715

Open
lupul-cel-bun opened this issue Oct 9, 2024 · 0 comments
Open

oc get-token is deprecated #715

lupul-cel-bun opened this issue Oct 9, 2024 · 0 comments

Comments

@lupul-cel-bun
Copy link

At the end of the container scenarios krkn runs
oc -n openshift-monitoring sa get-token prometheus-k8s
command fails

Command "get-token" is deprecated, and will be removed in the future version.
We could use these commands to achieve your goal.

oc get secrets -n openshift-monitoring | grep prometheus-k8s-token
oc -n openshift-monitoring get secret prometheus-k8s-token-5lqkm -o yaml | yq e '.data.token'

Regards,
Andrei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant