k3s/pkg/kubectl/cmd
Kubernetes Submit Queue 6e5b455b77 Merge pull request #39038 from ncdc/fix-kubectl-get-list
Automatic merge from submit-queue

Fix kubectl get -f <file> -o <nondefault printer> so it prints all items in the file

**What this PR does / why we need it**: Fix kubectl get -f <file> -o <nondefault printer> so it prints all the objects in the file, instead of just the first one. Also add a test for this feature.

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

**Special notes for your reviewer**:

**Release note**:

```release-note
```

cc @AdoHe @deads2k @liggitt @fabianofranz @kubernetes/kubectl @kubernetes/sig-cli-misc
2017-01-11 09:58:38 -08:00
..
config start the apimachinery repo 2017-01-11 09:09:48 -05:00
rollout start the apimachinery repo 2017-01-11 09:09:48 -05:00
set start the apimachinery repo 2017-01-11 09:09:48 -05:00
templates Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
testing start the apimachinery repo 2017-01-11 09:09:48 -05:00
util start the apimachinery repo 2017-01-11 09:09:48 -05:00
BUILD start the apimachinery repo 2017-01-11 09:09:48 -05:00
annotate.go Merge pull request #39038 from ncdc/fix-kubectl-get-list 2017-01-11 09:58:38 -08:00
annotate_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
apiversions.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
apply.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
apply_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
attach.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
attach_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
autoscale.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
certificates.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
clusterinfo.go Improve kubectl help with examples. 2017-01-06 13:35:43 -08:00
clusterinfo_dump.go Allow missing keys in templates by default 2017-01-09 10:35:46 -05:00
clusterinfo_dump_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
cmd.go Merge pull request #39172 from foxish/fix-help 2016-12-27 13:19:36 -08:00
cmd_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
completion.go Improve kubectl help with examples. 2017-01-06 13:35:43 -08:00
convert.go Merge pull request #39038 from ncdc/fix-kubectl-get-list 2017-01-11 09:58:38 -08:00
cp.go add kubectl cp 2016-10-29 20:24:54 -07:00
cp_test.go add kubectl cp 2016-10-29 20:24:54 -07:00
create.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
create_clusterrolebinding.go update prompt in create rolebinding/clusterrolebinding 2016-12-22 11:33:49 +08:00
create_configmap.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_configmap_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_deployment.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_deployment_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
create_namespace.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
create_namespace_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_pdb.go kubectl: add create pdb subcommand 2016-12-02 18:42:25 +01:00
create_quota.go kubectl: add create pdb subcommand 2016-12-02 18:42:25 +01:00
create_quota_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_rolebinding.go update prompt in create rolebinding/clusterrolebinding 2016-12-22 11:33:49 +08:00
create_secret.go Merge pull request #35191 from SamiHiltunen/commas-in-secrets 2016-12-23 08:04:50 -08:00
create_secret_test.go Merge pull request #35191 from SamiHiltunen/commas-in-secrets 2016-12-23 08:04:50 -08:00
create_service.go Merge pull request #34789 from AdoHe/external_service 2016-12-02 07:29:06 -08:00
create_service_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_serviceaccount.go kubectl: add create pdb subcommand 2016-12-02 18:42:25 +01:00
create_serviceaccount_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
create_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
delete.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
delete_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
describe.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
describe_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
drain.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
drain_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
edit.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
exec.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
exec_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
explain.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
expose.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
expose_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
get.go Merge pull request #39038 from ncdc/fix-kubectl-get-list 2017-01-11 09:58:38 -08:00
get_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
help.go Use our own normalizers for cmd examples and descriptions 2016-10-17 11:49:55 -02:00
label.go Merge pull request #39038 from ncdc/fix-kubectl-get-list 2017-01-11 09:58:38 -08:00
label_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
logs.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
logs_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
options.go Improve kubectl help with examples. 2017-01-06 13:35:43 -08:00
patch.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
patch_test.go Revert "support patch list of primitives" 2016-11-22 21:06:36 -08:00
portforward.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
portforward_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
proxy.go fix typo in `kubectl proxy` command line help 2016-11-29 11:54:48 +00:00
replace.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
replace_test.go move client/unversioned/fake to client/restclient/fake 2016-10-29 14:22:02 -07:00
rollingupdate.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
rollingupdate_test.go Move the common test functions from cmd_test.go to cmd/testing/fake.go 2016-10-19 08:53:26 +10:00
run.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
run_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
scale.go Revert "support patch list of primitives" 2016-11-22 21:06:36 -08:00
stop.go When --grace-period=0 is provided, wait for deletion 2016-11-23 15:02:43 -06:00
taint.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
taint_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
top.go modify the specifications 2017-01-04 09:12:24 +08:00
top_node.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
top_node_test.go generated: refactor 2016-11-23 22:30:47 -06:00
top_pod.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
top_pod_test.go Make top pod test table-driven 2016-12-12 20:23:17 +03:00
top_test.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
version.go Improve kubectl help with examples. 2017-01-06 13:35:43 -08:00