You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've being looking for a way to list/describe resources like ingresses, hpa and deployments, but can't find a way to do that using kubeclient.
I found some older issues mentioned what seems to be a confirmation that such API Groups are supported by this project, but couldn't find any example and/or documentation mentioning how to do that:
I even gave a try using pry, noticed that some methods are defined at runtime (after sending a get_pods, for example), but nothing related those API Groups that I already mentioned.
Am I missing something here, or this support is not complete at the moment?
After reviewing more issues like that and some debugging configuration for restclient (RESTCLIENT_LOG=stdout bundle exec ruby test.rb), I could get a working example:
Does that mean that I need to create a client instance to be able to execute queries with the "old" API and then create a new instance to query the "v1beta1"?
Or is there any shortcut for configure that on the fly (I saw that the client instance has an api Hash, not sure if it's advisable to change anything directly).
Hello there,
I've being looking for a way to list/describe resources like ingresses, hpa and deployments, but can't find a way to do that using
kubeclient
.I found some older issues mentioned what seems to be a confirmation that such API Groups are supported by this project, but couldn't find any example and/or documentation mentioning how to do that:
I even gave a try using
pry
, noticed that some methods are defined at runtime (after sending aget_pods
, for example), but nothing related those API Groups that I already mentioned.Am I missing something here, or this support is not complete at the moment?
That's the code I'm using for testing:
Thanks in advance,
Alceu
The text was updated successfully, but these errors were encountered: