mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #48340 from superbrothers/completions-config-rename-context
Automatic merge from submit-queue (batch tested with PRs 55268, 55282, 55419, 48340, 54829). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Support completions for kubectl config rename-context **What this PR does / why we need it**: With this PR, kubectl config rename-context supports completion for current context. ``` $ kubectl config rename-context <tab> cluster01 minikube ``` **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**: ```release-note Support completion for kubectl config rename-context ```
This commit is contained in:
commit
81631eceb8
@ -188,7 +188,7 @@ __custom_func() {
|
|||||||
__kubectl_get_resource_node
|
__kubectl_get_resource_node
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
kubectl_config_use-context)
|
kubectl_config_use-context | kubectl_config_rename-context)
|
||||||
__kubectl_config_get_contexts
|
__kubectl_config_get_contexts
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user