Merge pull request #42336 from superbrothers/context-completion-for-config-use-context

Automatic merge from submit-queue (batch tested with PRs 44119, 42538, 43802, 42336, 43396)

Support context completion for kubectl config use-context

**What this PR does / why we need it**:

With this PRt, kubectl is supported context completion for config use-context.

```
$ ./kubectl config use-context
cluster01  minikube
```

/ref  #42103 

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

#29386

**Special notes for your reviewer**:

**Release note**:

```release-note
```
This commit is contained in:
Kubernetes Submit Queue 2017-04-07 14:09:40 -07:00 committed by GitHub
commit 0a7fa6926a

View File

@ -170,6 +170,10 @@ __custom_func() {
__kubectl_get_resource_node
return
;;
kubectl_config_use-context)
__kubectl_get_contexts
return
;;
*)
;;
esac