Skip to content
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

Apply CRD when changes happened during dev that impact them #93

Merged
merged 5 commits into from
Aug 3, 2021

Conversation

metacosm
Copy link
Member

@metacosm metacosm commented Aug 3, 2021

This behavior is controlled by the quarkus.operator-sdk.crd.apply property. When set to true, any change impacting the CRD will trigger a regeneration and apply the new CRD to the cluster automatically.

Fixes #11
Fixes #12

This is needed so that CRDs can be applied even if they haven't been
generated in the current live reload. Also fixed wrong parameters order
when constructing CRDGenerationInfo.
Record which CRD got generated so that we can apply only the ones that
have changed when we register the controller. Also make sure that
delayed registration controllers follow the same logic with respect to
CRD application.
@metacosm metacosm merged commit e063e9b into main Aug 3, 2021
@metacosm metacosm self-assigned this Aug 3, 2021
@metacosm metacosm deleted the apply-crd branch August 3, 2021 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate dev mode improvements Investigate possibility to re-apply CRDs if modified
1 participant