-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 ClusterClass: fix reconciliation of MD delete #7403
🐛 ClusterClass: fix reconciliation of MD delete #7403
Conversation
/assign @fabriziopandini @killianmuldoon |
/cherry-pick release-1.2 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.2 in a new PR and assign it to you. In response to this:
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/test-infra repository. |
Follow-up to have this covered in some e2e test, or maybe just an integration test would work. |
Fix is working for me, it also fixes clusters in a bad state from an upgrade from v1.2.3. i.e. |
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.
/lgtm
b7d5dfc
to
068c165
Compare
I'll open an issue to extend the clusterclass changes e2e test to delete the MD we have at the end and verify that it's gone. Should be a straight-forward change and shouldn't even take longer, given that we have to delete the whole Cluster anyway. EDIT: Done: #7404 |
Thanks for the quick fix, IMO this is worth an extra patch release sometime beginning next week |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
@sbueringer: #7403 failed to apply on top of branch "release-1.2":
In response to this:
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/test-infra repository. |
I'll open a cherry-pick PR |
Thx @killianmuldoon for the additional testing!! |
What this PR does / why we need it:
Currently it is not possible to delete MachineDeployments via Cluster.spec.topology,
because the code in current state assumes that for an existing MachineDeployment there is still an entry in Cluster.spec.topology.workers.
This was introduced in #7231 and thus v1.2 and main is affected
Follow-up:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #