-
So far I am only finding examples and apis for specifically listing, pods, services, but I wanted to list all resources that matched certain label.
|
Beta Was this translation helpful? Give feedback.
Answered by
manusa
Nov 15, 2024
Replies: 1 comment
-
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 You can more or less build the equivalent yourself by doing |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gbhat618
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 aClient.genericKubernetesResources
and provide the label filter.