kr8s-org / kr8s

A batteries-included Python client library for Kubernetes that feels familiar for folks who already know how to use kubectl
https://kr8s.org
BSD 3-Clause "New" or "Revised" License
799 stars 43 forks source link

Add support for pagination #477

Open jacobtomlinson opened 1 month ago

jacobtomlinson commented 1 month ago

Which project are you requesting an enhancement for?

kr8s

What do you need?

On clusters with thousands of Pods calling kr8s.get("pods") can take a long time and consume a lot of resources on the control plane.

It would be nice to support the pagination built into Kubernetes so that we can read the list in chunks.

This would likely mean that methods like kr8s.get() would need to become a generator.