-
Notifications
You must be signed in to change notification settings - Fork 104
✨ 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
base: main
Are you sure you want to change the base?
✨ 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? |
✨ 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: