kubernetes/pkg/kubectl
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
..
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 #53768 from smarterclayton/chunking_cli 2017-10-29 15:59: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
testing update BUILD files 2017-10-15 18:18:13 -07:00
util update BUILD files 2017-10-15 18:18:13 -07:00
validation update BUILD files 2017-10-15 18:18:13 -07:00
apply.go kubectl: simplify code with help of linter 2017-06-23 09:49:30 -07:00
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
BUILD Merge pull request #53863 from marun/fed-move-cluster 2017-10-21 04:44:10 -07:00
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 kubectl: Move utility functions to util package 2017-09-04 20:14:16 +10:00
configmap_test.go Add --append-hash flag to kubectl create configmap/secret 2017-08-28 14:17:47 -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 kubectl: rewrite docstrings in several files 2017-06-23 09:49:30 -07:00
env_file.go Relax restrictions on environment variable names. 2017-07-28 22:11:26 +02:00
env_file_test.go kubectl: refactor addFromEnvFile, write tests 2017-06-23 09:49:30 -07:00
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 find and replace 2017-01-20 08:04:53 -05:00
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
OWNERS Revert "update kubectl approvers" 2017-01-25 17:32:22 -08:00
pdb.go fix para 2017-07-23 02:12:53 +08:00
quota.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
quota_test.go refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05:00
resource_filter.go pkg/api/legacyscheme: fixup imports 2017-10-18 17:23:55 +02:00
resource_filter_test.go Add test for kubectl resource filter. 2017-07-12 11:44:28 -07:00
rolebinding.go add validate in create rolebinding 2017-05-08 15:52:44 +08:00
rolebinding_test.go Supplement unit tests to kubectl create rolebinding command. 2017-03-29 16:36:22 +08: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 Update StatefulSet rollout status for parameterized RollingUpdate 2017-06-12 10:07:07 -07:00
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 kubectl: Move utility functions to util package 2017-09-04 20:14:16 +10:00
secret_for_docker_registry.go update .dockercfg content to config.json 2017-10-18 14:33:14 -04:00
secret_for_docker_registry_test.go update .dockercfg content to config.json 2017-10-18 14:33:14 -04:00
secret_for_tls.go kubectl: Remove ending punctuation from error strings 2017-08-30 20:33:22 +10:00
secret_for_tls_test.go Add --append-hash flag to kubectl create configmap/secret 2017-08-28 14:17:47 -07:00
secret_test.go Add --append-hash flag to kubectl create configmap/secret 2017-08-28 14:17:47 -07:00
service.go Clean up some service related description 2017-06-27 09:20:43 +08:00
service_basic.go Populate endpoints and allow ports with headless service 2017-06-28 11:15:51 +08:00
service_basic_test.go Populate endpoints and allow ports with headless service 2017-06-28 11:15:51 +08:00
service_test.go Populate endpoints and allow ports with headless service 2017-06-28 11:15:51 +08:00
serviceaccount.go start the apimachinery repo 2017-01-11 09:09:48 -05:00
serviceaccount_test.go refactor: use metav1.ObjectMeta in other types 2017-01-17 16:17:19 -05: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