kubernetes / kubernetes/kubectl

kubectl get doesn't stream results with many results

Open
#866 18 comments 2 reactions 2 assignees Claimed by @soltysh View on GitHub
area/kubectl kind/bug lifecycle/frozen priority/P2 sig/cli
Dominant language
Go
Stars
3.3k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I've got a cluster here with many many objects of a specific resource type (probably too many), and I'm trying to list them anyway:
```
$ kubectl get myresourcetype

```

If I run the same request with v8, I can see that it's running a lot of requests to the apiserver, with the continue token etc. But it looks like none of these resources are going to be printed before they are all collected.

There is a `chunk-size` parameter, but that only guides the number of objects returned by each request, not how things are going to be displayed, there's also no `limit` parameter.

That seems wrong to me.

/assign @soltysh @seans3
cc @lavalamp

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.