kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 12e5db561e
Merge pull request #53768 from smarterclayton/chunking_cli
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>.

Support api chunking in kubectl get

This enables chunking in the resource builder to make it easy to
retrieve resources in pages and visit partial result sets. This adds
`--chunk-size` to `kubectl get` only so that users can get comfortable
with the use of chunking in beta. Future changes will enable chunking
for all CLI commands so that bulk actions can be performed more
efficiently.

```
$ kubectl get pods --all-namespaces
... print batch of 500 pods ...
... print second batch of 500 pods ...
...
```

@kubernetes/sig-cli-pr-reviews @kubernetes/sig-api-machinery-pr-reviews

```release-note
`kubectl get` will by default fetch large lists of resources in chunks of up to 500 items rather than requesting all resources up front from the server. This reduces the perceived latency of managing large clusters since the server returns the first set of results to the client much more quickly.  A new flag `--chunk-size=SIZE` may be used to alter the number of items or disable this feature when `0` is passed.  This is a beta feature.
```
2017-10-29 15:59:54 -07:00
..
auth [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
config update BUILD files 2017-10-15 18:18:13 -07:00
rollout Switch to v1.List instead of allowing the conversion fn to be provided. 2017-10-18 09:30:46 -07:00
set fix issue(#52994)kubectl set resource can not update multi resource in local 2017-10-26 15:33:22 +08:00
templates update BUILD files 2017-10-15 18:18:13 -07:00
testdata/edit update BUILD files 2017-10-15 18:18:13 -07:00
testing Remove all traces of federation 2017-10-26 13:37:37 -07:00
util Remove all traces of federation 2017-10-26 13:37:37 -07:00
alpha.go Implement kubectl alpha diff to diff resources 2017-10-23 10:49:02 -07:00
annotate.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
annotate_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
apiversions.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
apply.go Support api chunking in kubectl get 2017-10-27 17:23:36 -04:00
apply_edit_last_applied.go enforce include-uninitialized in several kubectl commands 2017-08-31 16:30:56 +08:00
apply_set_last_applied.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
apply_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
apply_view_last_applied.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
attach.go Switch to v1.List instead of allowing the conversion fn to be provided. 2017-10-18 09:30:46 -07:00
attach_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
autoscale.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
BUILD Update kubectl drain command to use policy V1Beta1 instead of unversioned API 2017-10-25 16:44:57 +02:00
certificates.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
clusterinfo.go Better error check for kubectl cluster-info 2017-10-22 19:46:13 -04:00
clusterinfo_dump.go move i18n to kubectl/util 2017-08-16 12:27:36 -07: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 Remove all traces of federation 2017-10-26 13:37:37 -07:00
cmd_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
completion.go Update help/example for kubectl completion 2017-08-18 14:29:42 -07:00
convert.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
cp.go This patch improve kubectl cp command from two aspects 2017-10-13 13:51:53 +08:00
cp_test.go This patch improve kubectl cp command from two aspects 2017-10-13 13:51:53 +08:00
create.go add kubectl create --raw -f 2017-10-23 12:50:46 -04:00
create_clusterrole.go Merge pull request #47171 from xilabao/validate-nonResourceURL-in-create-clusterrole 2017-08-25 12:31:07 -07:00
create_clusterrole_test.go validate nonResourceURL in create clusterrole 2017-08-18 13:03:38 +08:00
create_clusterrolebinding.go Merge pull request #48267 from superbrothers/clusterrole-flag-completion 2017-10-03 22:04:00 -07:00
create_clusterrolebinding_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_configmap.go Add --append-hash flag to kubectl create configmap/secret 2017-08-28 14:17:47 -07:00
create_configmap_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_deployment.go Avoid fetching entire discovery tree when possible 2017-10-12 00:27:42 -04:00
create_deployment_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_namespace.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_namespace_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_pdb.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_pdb_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_quota.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_quota_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_role.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_role_test.go Merge pull request #46706 from CaoShuFeng/unit-create-role 2017-06-03 18:30:40 -07:00
create_rolebinding.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_rolebinding_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_secret.go update .dockercfg content to config.json 2017-10-18 14:33:14 -04:00
create_secret_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_service.go Merge pull request #47636 from xiangpengzhao/some-cleanup 2017-10-18 20:47:10 -07:00
create_service_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_serviceaccount.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
create_serviceaccount_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
create_test.go Merge pull request #54245 from deads2k/cli-03-postraw 2017-10-23 17:16:01 -07:00
delete.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
delete_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
describe.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
describe_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
diff.go Implement kubectl alpha diff to diff resources 2017-10-23 10:49:02 -07:00
diff_test.go Implement kubectl alpha diff to diff resources 2017-10-23 10:49:02 -07:00
drain.go Update kubectl drain command to use policy V1Beta1 instead of unversioned API 2017-10-25 16:44:57 +02:00
drain_test.go Update kubectl drain command to use policy V1Beta1 instead of unversioned API 2017-10-25 16:44:57 +02:00
edit.go enforce include-uninitialized in several kubectl commands 2017-08-31 16:30:56 +08:00
edit_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
exec.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
exec_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
explain.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
expose.go Merge pull request #47636 from xiangpengzhao/some-cleanup 2017-10-18 20:47:10 -07:00
expose_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
get.go Support api chunking in kubectl get 2017-10-27 17:23:36 -04:00
get_test.go Merge pull request #53743 from DirectXMan12/feature/polymorphic-scale-client 2017-10-23 13:39:07 -07:00
help.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
label.go Merge pull request #51971 from juanvallejo/jvallejo/add-list-option-to-kubectl-label 2017-09-23 18:49:00 -07:00
label_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
logs.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
logs_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
options.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
patch.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
patch_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
plugin.go exit with correct exit code on plugin failure 2017-10-18 19:01:29 -04:00
plugin_test.go kubectl plugins have access config, global flags and environment 2017-05-19 19:17:43 -03:00
portforward.go Merge pull request #50229 from tcharding/kubectl-portforward 2017-08-23 03:36:03 -07:00
portforward_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
proxy.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00
replace.go Remove swagger 1.2 validation 2017-10-03 08:18:21 -07:00
replace_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
rollingupdate.go Merge pull request #54024 from pwittrock/resource-validation-deps 2017-10-20 21:31:10 -07:00
rollingupdate_test.go small change to clear 2017-05-11 20:09:31 +08:00
run.go Avoid fetching entire discovery tree when possible 2017-10-12 00:27:42 -04:00
run_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
scale.go Merge pull request #51021 from zjj2wry/scale-selector-all 2017-09-29 12:38:17 -07:00
taint.go add Local and Unstructured builder attributes 2017-09-05 11:57:00 -04:00
taint_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
top.go Merge pull request #50620 from juanvallejo/jvallejo/update-kubectl-top-validation 2017-08-21 08:26:23 -07:00
top_node.go pass labelSelector to server side opaquely 2017-09-30 14:54:27 +08:00
top_node_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
top_pod.go Merge pull request #50620 from juanvallejo/jvallejo/update-kubectl-top-validation 2017-08-21 08:26:23 -07:00
top_pod_test.go [client-go] avoid Registry in fake REST client 2017-10-19 11:01:44 -04:00
top_test.go remove duplicated import and wrong alias name of api package 2017-07-25 10:04:25 +08:00
version.go move i18n to kubectl/util 2017-08-16 12:27:36 -07:00