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:
Kubernetes Submit Queue 2017-11-09 21:39:28 -08:00 committed by GitHub
commit 81631eceb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ __custom_func() {
__kubectl_get_resource_node
return
;;
kubectl_config_use-context)
kubectl_config_use-context | kubectl_config_rename-context)
__kubectl_config_get_contexts
return
;;