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

feat: make it possible to mark a primary resource as unowned #703

Merged
merged 2 commits into from
Sep 9, 2023

Conversation

metacosm
Copy link
Member

@metacosm metacosm commented Sep 4, 2023

No description provided.

@metacosm metacosm self-assigned this Sep 4, 2023
@metacosm metacosm requested a review from csviri September 4, 2023 15:56
@metacosm metacosm changed the title fix: improper parameter index in logger format feat: make it possible to mark a primary resource as unowned Sep 5, 2023
.withApplicationRoot(
(jar) -> jar.addClasses(UnownedReconciler.class, TestCR.class))
.overrideConfigKey("quarkus.operator-sdk.crd.generate-all", "true")
.overrideConfigKey("quarkus.operator-sdk.controllers." + UnownedReconciler.NAME + ".unowned-primary", "true");
Copy link
Member Author

@metacosm metacosm Sep 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the salient part of this test: setting the unowned-primary property to true for the controller in application.properties, while this also checks that excluding an unowned primary from generation is not also forced by the generate-all property.

@metacosm metacosm merged commit c927a3c into main Sep 9, 2023
5 checks passed
@metacosm metacosm deleted the exclude-primary-resource branch September 9, 2023 09:11
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.

2 participants