Skip to content

Is there a way to list all resources matching certain labels? #6614

Answered by manusa
gbhat618 asked this question in Q&A
Discussion options

You must be logged in to vote

Same as #1154

This feature is not available.

What kubectl does under the hood is check each available resource endpoint with the given label constraint by performing n HTTP requests.

You can more or less build the equivalent yourself by doing Client.getAPIVersions and then for each a Client.genericKubernetesResources and provide the label filter.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gbhat618
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants