OCPBUGS-56258: Replace deprecated oc sa get-token with oc create token - #119567
OCPBUGS-56258: Replace deprecated oc sa get-token with oc create token#119567smunaval wants to merge 1 commit into
Conversation
Reproduced on OCP 4.22.7: oc sa get-token fails and is deprecated; oc create token works.
|
@smunaval: This pull request references Jira Issue OCPBUGS-56258, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Hi @smunaval. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@smunaval: This pull request references Jira Issue OCPBUGS-56258, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@smunaval: This pull request references Jira Issue OCPBUGS-56258, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
1 similar comment
|
@smunaval: This pull request references Jira Issue OCPBUGS-56258, which is valid. 3 validation(s) were run on this bug
DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Version(s):
main (in-development OpenShift 5.1). Still present in published 4.17-4.22 docs.
Issue:
https://issues.redhat.com/browse/OCPBUGS-56258
Link to docs preview:
Preview is generated after an org member comments /ok-to-test.
Affected module:
modules/service-accounts-as-oauth-clients.adocPublished 4.22 page (still shows the deprecated command):
https://docs.redhat.com/en/documentation/openshift_container_platform/4.22/html/authentication_and_authorization/using-service-accounts-as-oauth-client
QE review:
Additional information:
The service-accounts-as-OAuth-clients topic currently tells users to run:
That command is deprecated. The replacement is:
Verified still present in OpenShift 4.22:
$ oc sa get-token <service_account_name>on the OAuth client page above.oc sa get-tokenprints a deprecation warning (Use oc create token instead) and fails without a service account name;oc create tokenworks and returns a token.This PR is a one-line docs change so the procedure matches current
ocbehavior.