-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
generic kubernetes resource improvements #3404
Comments
If your HasMetadata is properly annotated you can now do:
Or
The latter one though is a slightly different set of apis, which I'm trying to align with Resource #3364 |
Does this work also if the HasMetadata is an instance of GenericKubernetesResource ? |
With just the base type, no. The longer answer is that it's eventually possible for kubernetesClient.resource(resource) to use the resource to get the groupVersion and lookup the additional metadata if needed. I was going to try and start that with #3294 |
I'll see if I can get the full generic logic in 5.9 or shortly thereafter. |
To make it easy to deal with generic kubernetes resources, it would be nice to have:
As today to implement such logic, I have the following utility method in place:
It would be nice to be able to do something like:
The text was updated successfully, but these errors were encountered: