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
Then, the kind is transformed into method names, so it should be possible to use helm_client.create_helm_release(...), helm_client.get_helm_release(...), helm_client.get_helm_releases(...), etc.
(Internally, a discovery request is made first in order to define the methods. But it's automatic, from your perspective you can call these methods immediately after constructing the Client)
Currently, it's impossible to use a single Client for multiple api groups. You'd need one Client for all helm.fluxcd.io operations, another for pods and other core 'v1' resources, etc...
If you only need operations on fixed hard-coded kinds, the above is all you need, no need for create_entity().
If you have a use case where the kind is dynamic (e.g. #329), create_entity() and friends are undocumented and considered internal. We'd like to replace them with a better thought-out interface (#332), and for now it's better to do client.public_send("create_#{...}", ...), clunky as that is, because that will keep working.
I've found
create_entity
but I'm struggling to work out how to use it.The entity that I'm trying to create is a
HelmRelease
object - thecrd
for which looks like:How can I use the kubeclient to create an object of this type? Believe I can use
create_entity
but can't work out which value needs to go where!The text was updated successfully, but these errors were encountered: