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
Hey,
I'm just wondering if there is any way to post the raw json or yaml kubernetes spec's that I already have via this gem? I have some existing yaml files that I don't really want to rewrite, and just want to read them from disk and use this gem to post them off.
eg, how do I turn resource_json = YAML.load_file('echo-server/kubernetes/service.yaml').to_h into Kubeclient::Resource?
Note that it gets trickier if apiVersion in the file may differ.
Currently you'd need to construct a Kubeclient appropriately (there're several issues to improve this, #208).
See fuller answer in #329 (comment)
Hey,
I'm just wondering if there is any way to post the raw json or yaml kubernetes spec's that I already have via this gem? I have some existing yaml files that I don't really want to rewrite, and just want to read them from disk and use this gem to post them off.
eg, how do I turn
resource_json = YAML.load_file('echo-server/kubernetes/service.yaml').to_h
intoKubeclient::Resource
?instead of the example:
Is this even possible?
The text was updated successfully, but these errors were encountered: