-
Notifications
You must be signed in to change notification settings - Fork 51
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
Is there a way to post process the generated CRD? #1025
Comments
I believe I found my answer and it seems this can be done by through an extension at build time. |
@matteriben sorry, this somehow slipped by me… Would you mind describing your solution? Maybe there's something we could add in QOSDK to make this and future similar use cases easier to deal with? |
@metacosm The pathway I found in the meantime is to extend the build system (maven or in my case gradle) with a post-processing stage. |
@matteriben would it help if QOSDK provided a way to add a CRD post-processor that would be inserted before the CRD is serialized to disk? Most likely in the form of a CDI bean implementing a given interface. |
I'd like the generated CRD to include logical constraints using [ "oneOf", "allOf", "anyOf", "not" ]. Currently I don't believe this is something the generator can provide. If there is a way to post process the generated CRD before its applied that could offer a pathway to include these constraints.
Related:
fabric8io/kubernetes-client#6801
The text was updated successfully, but these errors were encountered: