-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Example correction in the documentation: "kubectl auth can-i ... --as ..." #45728
Comments
This issue is currently awaiting triage. SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the The 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 kubernetes/test-infra repository. |
The existing format should work the same as the alternates. Can you share what problem you are seeing with it? |
/language en |
/triage needs-information @czavieh Would you be able to share the information requested in #45728 (comment) |
/priority awaiting-more-evidence |
I tried to use the format as suggested in the documentation, So I am confused too. This happened the day I reported. I delete that environment and don't have access to it to take screenshot. I don't have any explanation and if I am the only person who has ever reported this, we can close the ticket and next time I encounter this issue, I will document it with details and then report it. Thank you for prompt response. |
@czavieh The command is working perfectly the same as given in the doc and the suggested one. --as=system:serviceaccount:dev:foo is not an intentional behaviour you can use either of the command in some case the command in "" will be treated as single argument which is correct and intended behaviour. So both the command are working fine and are correct. |
So for now i am closing this issue you can reopen it or raise the new issue in case you encounter the error. /close |
@niranjandarshann: Closing this issue. In 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 kubernetes/test-infra repository. |
documentation at this URL
https://kubernetes.io/docs/reference/kubectl/generated/kubectl_auth/kubectl_auth_can-i/#examples
The following example need to be corrected
from:
kubectl auth can-i list pods --as=system:serviceaccount:dev:foo -n prod
to:
kubectl auth can-i list pods --as="system:serviceaccount:dev:foo" -n prod
or
kubectl auth can-i list pods --as system:serviceaccount:dev:foo -n prod
The text was updated successfully, but these errors were encountered: