-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to simply create k8s resources by Yaml.loadAs(file) #611
Comments
For example:kubectl create -f xxx.yaml, |
the go library has a dynamic [de]serializer so it doesn't require the concrete types. and that implementation is some sort of debatable for a period of time.. as a walkaround, consider deserializing w/ a |
You can do this, the call is:
It returns a generic |
Closing this since I think the question is answered. |
@brendandburns @kondapally1989
I readed issues #254 and #170 .
But I want to create k8s resources via the brower upload yaml file. I actually don't know that the user write which kind and apiVsersion into yaml file, if so, how to create k8s resources via
io.kubernetes.client.util.Yaml.loadAs(file)
does it support in this library?
Thanks 🙏
The text was updated successfully, but these errors were encountered: