-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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
Support completion for --cluster and --user #44251
Support completion for --cluster and --user #44251
Conversation
With this commit, kubectl is supported completion for `--cluster` and `--user`. ``` $ kubectl --user=<tab> --user=minikube --user=user01 $ kubectl --cluster=<tab> --cluster=cluster01 --cluster=minikube ```
Hi @superbrothers. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with 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. I understand the commands that are listed here. |
@k8s-bot ok to test |
/assign @adohe |
As far as I see the above test, it seems that this failure does not related to this PR. |
@k8s-bot verify test this |
What state does this PR? Should I do something? |
@superbrothers this looks ok, mind updating the release notes in the initial comment so that it reflects the newly added feature? |
@soltysh Thank you for your comment. I updated the release note in the initial comment. |
/lgtm You need to wait for Fabiano or TonyAdo to approve it. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabianofranz, soltysh, superbrothers
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Umm... It seems that e2e testing failed again where is unrelated to this PR. |
@k8s-bot cvm gce e2e test this |
Automatic merge from submit-queue |
} | ||
|
||
# $1 has to be "contexts", "clusters" or "users" | ||
__kubectl_config_get() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be __kubectl_parse_config()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks #29386
Fix incorrect release notes for kubernetes/kubernetes#44251
What this PR does / why we need it:
kubectl is supported completion for
--cluster
and--user
.Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Special notes for your reviewer:
Release note: