-
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
Adapt CRD Generator v2 to new approach to KubernetesResource #6335
Comments
Hi @shawkins, Let's continue the discussion about sundrio/sundrio#482 (comment) here. Do you think we should revert to using I don't dislike using Thoughts? shall we revert and annotate KuberntesResource? shall we continue with the new approach? |
I'm open to using Object given that we're talking about the 7.0 release. It will be a breaking change for some - those who were able to have appropriate descendent methods, or who are expecting a KuberentesResource return type. Those aren't too hard to correct. My main concerns are about completeness and handling the evolution away from KubernetesResource - so we don't end up with duplicate conventions for very long. The only thing we lose, other than some of the fluent methods, is a bit of the principled nature of KubernetesResource - I think KubernetesResource was understood to be a little wider than HasMetadata and required some special knowledge to use / expect RawExtension. When something is typed as Object that won't be as clear - you'd need to see the deserializer and/or have some propogation of the javadocs, which is currently missing for the builder / fluents. Let's see if we can round out the remaining changes / migration path and discuss it at the next community meeting. |
I see your point. I'd say that from a client-go/kubernetes-api/openshift-api parity standing point From a user experience (UX) perspective, it might be much better to keep using
Agreed. Reverting to the former approach is just a matter of changing a few lines and re-running the model generation. Other links:
|
Description
Part of #6616
Part of #6130Originally posted by @shawkins in #6333 (comment)
Tasks
The text was updated successfully, but these errors were encountered: