Support context completion for kubectl config use-context

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

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

/refs #42103, #29386
pull/6/head
Kazuki Suda 2017-03-02 00:48:08 +09:00
parent 2249550b57
commit a46b04dc78
1 changed files with 4 additions and 0 deletions

View File

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