kubernetes/pkg/kubectl
Kubernetes Submit Queue e4abc36d5d Merge pull request #37636 from juanvallejo/jvallejo/bugfix/print-resource-kind-when-single-resource-type
Automatic merge from submit-queue

add resource prefix to multiple items w/ same kind

**Release note**:
```release-note
release-note-none
```

This patch ensures that a resource prefix is added to multiple items of
the same kind, when using `kubectl get all`. Before, a prefix was added only
when a single item was returned on `kubectl get all`, but ignored if only a
single resource kind existed but multiple items for that kind were
returned.

**Example**
```
$ kubectl get all
No resources found.

$ kubectl create service loadbalancer testsvc1 --tcp=8080
$ kubectl get all
NAME               CLUSTER-IP       EXTERNAL-IP                     PORT(S)    AGE
svc/testsvc1       172.30.119.220   172.46.100.155,172.46.100.155   8080/TCP   1h

$ kubectl create service loadbalancer testsvc2 --tcp=8081
$ kubectl get all
NAME               CLUSTER-IP       EXTERNAL-IP                     PORT(S)    AGE
svc/testsvc1       172.30.119.220   172.46.100.155,172.46.100.155   8080/TCP   1h
svc/testsvc2       172.30.241.197   172.46.164.158,172.46.164.158   8081/TCP   1h
```

@fabianofranz
2016-12-06 07:43:07 -08:00
..
cmd Merge pull request #37636 from juanvallejo/jvallejo/bugfix/print-resource-kind-when-single-resource-type 2016-12-06 07:43:07 -08:00
metricsutil Fix package aliases to follow golang convention 2016-11-30 15:40:50 +08:00
resource Merge pull request #37636 from juanvallejo/jvallejo/bugfix/print-resource-kind-when-single-resource-type 2016-12-06 07:43:07 -08:00
testing refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
apply.go Fix typos 2016-10-15 00:21:00 +03:00
autoscale.go check the value of min and max 2016-12-01 16:09:05 +08:00
bash_comp_utils.go
BUILD refactor: generated 2016-12-03 19:10:46 -05:00
cluster_test.go [Federation][(Un)join-00] Implement federation/cluster resource generator. 2016-11-01 00:58:54 -07:00
cluster.go [Federation][(Un)join-00] Implement federation/cluster resource generator. 2016-11-01 00:58:54 -07:00
clusterrolebinding.go add create clusterrolebinding command 2016-11-21 08:50:06 -05:00
configmap_test.go
configmap.go
custom_column_printer_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
custom_column_printer.go make kubectl get generic with respect to objects 2016-11-04 09:04:57 -04:00
deployment_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
deployment.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
describe_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
describe.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
explain.go
generate_test.go
generate.go
history.go generated: refactor 2016-11-23 22:30:47 -06:00
interfaces.go
kubectl_test.go
kubectl.go kubectl: set alias for poddisruptionbudget 2016-12-02 18:39:55 +01:00
namespace_test.go Fix namespace_test error message 2016-08-08 12:08:57 +10:00
namespace.go
OWNERS Move pkg/kubectl reviewers into an alias 2016-10-28 14:54:17 -07:00
pdb.go refactor: generated 2016-12-03 19:10:46 -05:00
proxy_server_test.go Make "attach" and "exec" rejection in proxy more explicit 2016-07-19 20:50:19 +02:00
proxy_server.go Code optimization 2016-11-30 17:40:57 +08:00
quota_test.go Add --scopes to kubectl-create-quota and add tests 2016-07-26 14:12:35 +02:00
quota.go Add --scopes to kubectl-create-quota and add tests 2016-07-26 14:12:35 +02:00
resource_filter.go kubectl resource filter convert unstructured obj before apply filter func 2016-11-19 13:03:39 +08:00
resource_printer_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
resource_printer.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
rollback.go generated: refactor 2016-11-23 22:30:47 -06:00
rolling_updater_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
rolling_updater.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
rollout_status_test.go kubectl: add --revision flag in rollout status 2016-10-10 15:04:46 +02:00
rollout_status.go generated: refactor 2016-11-23 22:30:47 -06:00
run_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
run.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
scale_test.go include multiple versions in clientset 2016-10-29 13:30:47 -07:00
scale.go generated: refactor 2016-11-23 22:30:47 -06:00
secret_for_docker_registry_test.go
secret_for_docker_registry.go
secret_for_tls_test.go the created path should be closed in test case 2016-09-06 11:08:52 +08:00
secret_for_tls.go
secret_test.go
secret.go
service_basic_test.go Add "create service" sub-commands 2016-08-08 12:31:21 +10:00
service_basic.go create service add create ExternalName service implementation 2016-11-16 04:47:10 -05:00
service_test.go Merge pull request #28239 from ApsOps/kubectl-expose-headless-svc 2016-08-02 01:18:19 -07:00
service.go Merge pull request #28239 from ApsOps/kubectl-expose-headless-svc 2016-08-02 01:18:19 -07:00
serviceaccount_test.go
serviceaccount.go
sorted_resource_name_list_test.go
sorted_resource_name_list.go kubectl 2016-11-23 15:53:09 -08:00
sorting_printer_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
sorting_printer.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
stop_test.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
stop.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
versioned_client.go kubectl 2016-11-23 15:53:09 -08:00