• Kubernetes Submit Queue's avatar
    Merge pull request #53768 from smarterclayton/chunking_cli · 12e5db56
    Kubernetes Submit Queue authored
    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.
    ```
    12e5db56
Name
Last commit
Last update
..
apply Loading commit data...
apps Loading commit data...
cmd Loading commit data...
explain Loading commit data...
metricsutil Loading commit data...
plugins Loading commit data...
proxy Loading commit data...
resource Loading commit data...
testing Loading commit data...
util Loading commit data...
validation Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
apply.go Loading commit data...
autoscale.go Loading commit data...
autoscale_test.go Loading commit data...
bash_comp_utils.go Loading commit data...
clusterrolebinding.go Loading commit data...
clusterrolebinding_test.go Loading commit data...
configmap.go Loading commit data...
configmap_test.go Loading commit data...
delete.go Loading commit data...
delete_test.go Loading commit data...
deployment.go Loading commit data...
deployment_test.go Loading commit data...
doc.go Loading commit data...
env_file.go Loading commit data...
env_file_test.go Loading commit data...
generate.go Loading commit data...
generate_test.go Loading commit data...
history.go Loading commit data...
interfaces.go Loading commit data...
kubectl.go Loading commit data...
namespace.go Loading commit data...
namespace_test.go Loading commit data...
pdb.go Loading commit data...
quota.go Loading commit data...
quota_test.go Loading commit data...
resource_filter.go Loading commit data...
resource_filter_test.go Loading commit data...
rolebinding.go Loading commit data...
rolebinding_test.go Loading commit data...
rollback.go Loading commit data...
rolling_updater.go Loading commit data...
rolling_updater_test.go Loading commit data...
rollout_status.go Loading commit data...
rollout_status_test.go Loading commit data...
run.go Loading commit data...
run_test.go Loading commit data...
scale.go Loading commit data...
scale_test.go Loading commit data...
secret.go Loading commit data...
secret_for_docker_registry.go Loading commit data...
secret_for_docker_registry_test.go Loading commit data...
secret_for_tls.go Loading commit data...
secret_for_tls_test.go Loading commit data...
secret_test.go Loading commit data...
service.go Loading commit data...
service_basic.go Loading commit data...
service_basic_test.go Loading commit data...
service_test.go Loading commit data...
serviceaccount.go Loading commit data...
serviceaccount_test.go Loading commit data...
sorting_printer.go Loading commit data...
sorting_printer_test.go Loading commit data...
versioned_client.go Loading commit data...