Skip to content

fix: use a new version for control-plane and worker mutation handlers #1104

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

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

dkoshkin
Copy link
Contributor

@dkoshkin dkoshkin commented Apr 14, 2025

What problem does this PR solve?:
When adding #1097, we effectively enabled this handler by default through API defaults. I wrongly assumed that the worker and control-plane handlers were behind a new version of the handlers registration. And because its not, this caused a rollout of all Machines when CAREN is upgraded on the management cluster.

This PR puts the worker and control-plane handlers behind a new version of the hooks and does not include the new noderegistration handler in the older version of the hooks.

Which issue(s) this PR fixes:
Fixes #

How Has This Been Tested?:

Tested locally by upgrading the handler version and observing that Machines were NOT rolled out. We will need some strategy to test this in an e2e test, or possibly think of a different approach for this, e.g. running multiple versions of the controller instead of embedding it in a single handler.

Special notes for your reviewer:

@github-actions github-actions bot added the fix label Apr 14, 2025
@dkoshkin dkoshkin force-pushed the dkoshkin/fix-cp-worker-handlers-versions branch 2 times, most recently from 90f9f0b to 5233ba6 Compare April 14, 2025 16:21
@github-actions github-actions bot added fix and removed fix labels Apr 14, 2025
Previously, the addition of the noderegistration handler
and API defaults caused a rollout of all Machines when CAREN was upgraded.
@dkoshkin dkoshkin force-pushed the dkoshkin/fix-cp-worker-handlers-versions branch from 5233ba6 to db1feae Compare April 14, 2025 16:30
Copy link
Contributor

@supershal supershal left a comment

Choose a reason for hiding this comment

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

@dkoshkin Thanks going through code changes with us.

@dkoshkin dkoshkin merged commit d16c99b into main Apr 14, 2025
21 checks passed
@dkoshkin dkoshkin deleted the dkoshkin/fix-cp-worker-handlers-versions branch April 14, 2025 21:11
@dkoshkin dkoshkin mentioned this pull request Apr 14, 2025
dkoshkin added a commit that referenced this pull request Apr 14, 2025
🤖 I have created a release *beep* *boop*
---


## 0.28.1 (2025-04-14)

<!-- Release notes generated using configuration in .github/release.yaml
at main -->

## What's Changed
### Fixes 🔧
* fix: use a new version for control-plane and worker mutation handlers
by @dkoshkin in
#1104
### Other Changes
* build: use correct frr image for metallb by @dkoshkin in
#1102


**Full Changelog**:
v0.28.0...v0.28.1

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants