Skip to content

feat: allow reconcilers to override their configuration at runtime#1090

Merged
metacosm merged 1 commit into
mainfrom
configure-controller
May 19, 2025
Merged

feat: allow reconcilers to override their configuration at runtime#1090
metacosm merged 1 commit into
mainfrom
configure-controller

Conversation

@metacosm

@metacosm metacosm commented May 7, 2025

Copy link
Copy Markdown
Member

If a reconciler implements ConfigurableReconciler, then QOSDK will
derive a new configuration for the reconciler by calling
updateConfigurationFrom before registering the reconciler with this
new configuration.

If a reconciler implements `ConfigurableReconciler`, then QOSDK will
derive a new configuration for the reconciler by calling
`updateConfigurationFrom` before registering the reconciler with this
new configuration.

@xstefank xstefank left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is better. But wasn't there also a test?

@metacosm

metacosm commented May 9, 2025

Copy link
Copy Markdown
Member Author

I think this is better. But wasn't there also a test?

There isn't at the moment, but I need to add some, indeed.
@goldmann would this solution work for you?

@goldmann

goldmann commented May 9, 2025

Copy link
Copy Markdown
Contributor

Yes, yep! Will work just fine!

@metacosm

metacosm commented May 9, 2025

Copy link
Copy Markdown
Member Author

Thanks. Closing this PR as this will instead be supported in extensions instead of JOSDK core.

@metacosm metacosm closed this May 9, 2025
@metacosm metacosm deleted the configure-controller branch May 9, 2025 07:50
@goldmann

Copy link
Copy Markdown
Contributor

I'm a little bit puzzled on why this was closed. Isn't this the extension repo where this should be living? Or maybe I'm understanding it wrongly? What is the relation of operator-framework/java-operator-sdk#2784 to this PR?

Thanks and sorry!

@metacosm metacosm restored the configure-controller branch May 12, 2025 07:26
@metacosm

Copy link
Copy Markdown
Member Author

I'm puzzled as well! 😅
I guess I was tired and closed the wrong PR. 🤦🏼
Thank you!

@metacosm metacosm reopened this May 12, 2025
@metacosm

Copy link
Copy Markdown
Member Author

I'm a little bit puzzled on why this was closed. Isn't this the extension repo where this should be living? Or maybe I'm understanding it wrongly? What is the relation of operator-framework/java-operator-sdk#2784 to this PR?

That PR is a change I thought would be needed but isn't after all. This is a tangential issue that is also kind of orthogonal (if that makes any sense!) 😁
Strictly speaking, one is not needed for the other.

@metacosm metacosm marked this pull request as ready for review May 19, 2025 09:23
@metacosm metacosm requested a review from a team as a code owner May 19, 2025 09:23
@metacosm metacosm merged commit 5b354c0 into main May 19, 2025
@metacosm metacosm deleted the configure-controller branch May 19, 2025 09:24
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.

3 participants