-
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
Support Conversion Hook Configuration in CRD Generation #4692
Comments
If I read it correctly, the I will be unsure how to implement this support given that we don't have explicit management of "versions" too. i.e. given multiple versions of the same CRD, where the |
Yes, absolutely, it is not nice this way. Just was not able to think any better alternative. |
As agreed during the internal meeting, we'll investigate the improvement of our model to have a top-level CustomResourceDefinition entity/annotation/... Currently, the CRD generation uses a convention approach where users are able to annotate custom resource POJOs that will later be consolidated into a custom resource definition by the APT. The convention matches the POJO name for each version and then consolidates everything into a single CRD. The improvement should keep compatibility with the current convention approach. However, we could introduce this top-level CRD entity where we could explicitly define the versions, validation hooks, and of course the requested conversion hooks. |
I think a similar approach had indeed been discussed a while ago. |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
I still plan to work on this. This comment is mainly for @Stale :) |
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions! |
Is your enhancement related to a problem? Please describe
Conversion hooks are defines in CRD, might be nice to support this.
https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definition-versioning/#configure-customresourcedefinition-to-use-conversion-webhooks
Describe the solution you'd like
Probably with an annotation, sample:
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: