Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 7f9f847ce9 Merge pull request #54406 from superbrothers/kubectl-override-short-flags
Automatic merge from submit-queue. 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>.

Improve 'kubectl completion` to override short flags

**What this PR does / why we need it**: This PR improves `kubectl completion` to override short flags in
addition to long flags. I tested this PR in both bash and zsh.

```
# Complete pods name in the `default` namespace
$ kubectl get po nginx-4217019353-<tab>
nginx-4217019353-mw1pk  nginx-4217019353-rzw2c

# Complete pods name in the `kube-system` namepace due to overriding the namespace
$ kubectl -n kube-system get po kube<tab>
kube-addon-manager-minikube  kube-dns-910330662-l9pwt     kubernetes-dashboard-9fbhm
```

**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
NONE
```
2017-10-31 22:32:54 -07:00
..
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-26 13:37:37 -07:00
2017-10-23 12:50:46 -04:00
2017-10-30 14:16:36 -07:00
2017-10-30 12:49:44 -07:00
2017-10-18 17:23:55 +02:00
2017-10-03 08:18:21 -07:00