Make Api.get() use server side filtering #486
Labels
enhancement
New feature or request
good first issue
Good description with clear steps for implementation. Great for newcomers
help wanted
Extra attention is needed
kr8s
Which project are you requesting an enhancement for?
kr8s
What do you need?
In #452 we made
APIObject.get()
more efficient by side server side filtering.It would be nice if we could make the same improvement to
Api.get()
. For example:In the above example we list all pods, and then filter out just
pod1
andpod2
. It would be much more efficient to do the filtering on the server side. In #452 we used a field selector to do this, however it looks like it's not possible to do that for multiple resources as it doesn't support thein
operator.Looking at
kubectl get pods pod1 pod2
it appears to make two get requests and does server side filtering on each one so that each request only returns one Pod. We probably want to replicate this pattern inkr8s
.The text was updated successfully, but these errors were encountered: