We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a method to submit YAML resources of any type to Kubernetes ? What I mean is not having to differentiate between Kind types.
The text was updated successfully, but these errors were encountered:
This is not currently possible. You would need to modify the Yaml class here:
Yaml
https://github.com/kubernetes-client/java/blob/master/util/src/main/java/io/kubernetes/client/util/Yaml.java
To load unstructured YAML and then pick out the API group/version/kind and then use the ModelMapper here: https://github.com/kubernetes-client/java/blob/master/util/src/main/java/io/kubernetes/client/util/ModelMapper.java
ModelMapper
To determine the right strongly typed object, and then use Yaml.load again to reload the YAML into that strongly typed object.
Yaml.load
Then you would need to pass that object to a GenericApi handler that was configured with the group/version/kind that you found above.
GenericApi
So it's possible, but it will require you to write a bunch of code. If you do, do that, feel free to send a PR.
Sorry, something went wrong.
hey @brendandburns, i had a question.
So, do we need a feature that can differentiate between kinds without explicitly mentioning kinds in the yaml file.
No branches or pull requests
Is there a method to submit YAML resources of any type to Kubernetes ?
What I mean is not having to differentiate between Kind types.
The text was updated successfully, but these errors were encountered: