-
Notifications
You must be signed in to change notification settings - Fork 108
✨ Add ConfigMap watching capability to trigger provider upgrades #856
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
✨ Add ConfigMap watching capability to trigger provider upgrades #856
Conversation
Welcome @PavanNeerudu! |
Hi @PavanNeerudu. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-cluster-api-operator ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
351ae92
to
0869c19
Compare
Hey @furkatgofurov7 , could you review this PR? |
@neolit123, @timothysc , could you please review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, only one nit
/ok-to-test |
- Add comprehensive test coverage for ConfigMap changes - Fix timing issues with hash annotations - Add test for multiple ConfigMaps error condition - Improve controller to reject multiple ConfigMaps per provider - Add proper ReadyCondition setting in tests
- Replace string literals with testNamespaceName constant - Reduce complexity in addConfigMapToHash function - Add blank lines before return statements - Fix whitespace/cuddling issues per wsl linter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
LGTM, just some lint job failures
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Danil-Grigorev The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hey @Danil-Grigorev , could you re-approve this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, except few missing changes listed below and code improvement suggestions:
- similar changes as in https://github.com/kubernetes-sigs/cluster-api-operator/blob/main/hack/charts/cluster-api-operator/templates/deployment.yaml#L74-L76 need to be added for the new flag
- same thing as in https://github.com/kubernetes-sigs/cluster-api-operator/blob/main/hack/charts/cluster-api-operator/values.yaml#L66
76cbe2b
to
698b837
Compare
@furkatgofurov7 , I have taken these changes in the last commit. Can you take a look once again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @PavanNeerudu and sorry for the delay (due to vacation season)
/lgtm
LGTM label has been added. Git tree hash: bc4a1e81b22ef77bf699ca1117e977fa945fdb29
|
Hey @furkatgofurov7 , when do you think we can make a new release? |
Sometime in the middle of this month, hopefully. |
✨ Add ConfigMap watching capability to trigger provider upgrades
What this PR does / why we need it:
This PR adds the ability for cluster-api-operator to watch ConfigMaps and trigger provider upgrades when ConfigMap content changes, even without version bumps. This addresses scenarios where operators need to update provider configurations (like resource limits, concurrency settings, or other operational parameters) through ConfigMaps without requiring a full version upgrade.
Key Changes:
--watch-configmap
CLI flag to enable ConfigMap watching (default: false for backward compatibility)Use Cases:
Technical Implementation:
Which issue(s) this PR fixes:
Fixes #795
Testing: