k3s/pkg/kubectl
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
..
apply apply/strategy: Improve test performance 2017-10-23 20:29:39 -07:00
apps update BUILD files 2017-10-15 18:18:13 -07:00
cmd Merge pull request #54406 from superbrothers/kubectl-override-short-flags 2017-10-31 22:32:54 -07:00
explain Update openapi to use kube-openapi code 2017-10-20 09:21:06 -07:00
metricsutil Update bazel 2017-10-18 17:24:04 +02:00
plugins update BUILD files 2017-10-15 18:18:13 -07:00
proxy update BUILD files 2017-10-15 18:18:13 -07:00
resource Merge pull request #53768 from smarterclayton/chunking_cli 2017-10-29 15:59:54 -07:00
scheme create an instance of registry and scheme for kubectl 2017-10-27 14:51:47 -07:00
testing update BUILD files 2017-10-15 18:18:13 -07:00
util switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
validation update BUILD files 2017-10-15 18:18:13 -07:00
BUILD add test for pdb 2017-10-31 15:32:02 +08:00
OWNERS
apply.go
autoscale.go add ut for pkg/kubectl/autoscale_test.go 2017-09-14 09:15:44 +08:00
autoscale_test.go add ut for pkg/kubectl/autoscale_test.go 2017-09-14 09:15:44 +08:00
bash_comp_utils.go
clusterrolebinding.go add UT for pkg/kubecl clusterrolebinding 2017-08-28 15:13:15 +08:00
clusterrolebinding_test.go add UT for pkg/kubecl clusterrolebinding 2017-08-28 15:13:15 +08:00
configmap.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
configmap_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
delete.go fix missing apps/replicaset in kubectl 2017-09-26 10:54:04 -07:00
delete_test.go kubectl: simplify deepcopy calls 2017-08-16 10:58:51 +02:00
deployment.go kubectl: deploy generators don't need to impl Generator iface 2017-07-31 12:26:17 -07:00
deployment_test.go add ut for pkg/kubectl/deployment.go 2017-08-22 11:10:21 +08:00
doc.go
env_file.go Relax restrictions on environment variable names. 2017-07-28 22:11:26 +02:00
env_file_test.go
generate.go UTs for pkg/kubectl generate_test.go 2017-08-03 21:34:03 +08:00
generate_test.go UTs for pkg/kubectl generate_test.go 2017-08-03 21:34:03 +08:00
history.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
interfaces.go
kubectl.go kubectl: Move utility functions to util package 2017-09-04 20:14:16 +10:00
namespace.go Remove kubectl create namespace dependencies on kubernetes/pkg/api 2017-10-25 20:26:11 +08:00
namespace_test.go Remove kubectl create namespace dependencies on kubernetes/pkg/api 2017-10-25 20:26:11 +08:00
pdb.go fix TODO one of min-available/max-available must be specified when create pdb 2017-10-31 09:16:54 +08:00
pdb_test.go add test for pdb 2017-10-31 15:32:02 +08:00
quota.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
quota_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
resource_filter.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
resource_filter_test.go
rolebinding.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
rolebinding_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
rollback.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
rolling_updater.go kubectl: Move utility functions to util package 2017-09-04 20:14:16 +10:00
rolling_updater_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
rollout_status.go kubectl: Clean up documentation for rollout_status.go 2017-08-30 17:25:42 +10:00
rollout_status_test.go
run.go Enable batch/v1beta1.CronJobs by default 2017-09-03 11:17:33 +02:00
run_test.go Enable batch/v1beta1.CronJobs by default 2017-09-03 11:17:33 +02:00
scale.go fix missing apps/replicaset in kubectl 2017-09-26 10:54:04 -07:00
scale_test.go fix error message for scale 2017-08-09 10:37:03 +08:00
secret.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
secret_for_docker_registry.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
secret_for_docker_registry_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
secret_for_tls.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
secret_for_tls_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
secret_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
service.go
service_basic.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
service_basic_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
service_test.go
serviceaccount.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
serviceaccount_test.go switch some commands to use its own scheme 2017-10-27 18:31:42 -07:00
sorting_printer.go Make metav1.(Micro)?Time functions take pointers 2017-08-17 11:24:28 +02:00
sorting_printer_test.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
versioned_client.go Fix printer hack to get a versioned client 2017-08-06 15:30:13 +02:00