-
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
🐛 Fix bug where MachinePool Machine ownerRefs weren't updating #9619
Conversation
@killianmuldoon @fabriziopandini @sbueringer Here's the bug fix related to the MPM ownerRefs I mentioned in Slack! |
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.
/area machinepool
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
LGTM label has been added. Git tree hash: ec0c53aac60b2e98e02fbd0d121dcd9a5808afb7
|
Does this need to be cherry-picked in any previous releases? |
I don't believe so since the ownerRef changes are going to land in the current release. |
/assign @killianmuldoon |
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
Thanks for fixing this @Jont828!
9795789
to
43a5091
Compare
/lgtm |
LGTM label has been added. Git tree hash: b601c7d1fec2952b4a6fc2355b6dd2af3c0122a7
|
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.
Took a quick look and AFAICT this isn't running the e2e tests - we should definitely add it there if we want to make this change.
@Jont828 can you update to run MPM in the quick start to ensure this change is working?
/test pull-cluster-api-e2e-full-main |
/retest |
@killianmuldoon this change is being tested in #8842 which includes the changes in here (and that PR is a pre-requisite in order to be able to test MachinePool Machines with Docker), and that's where the test was failing I believe. This commit was broken out into a separate PR to make reviewing easier and to keep the other one as a reference PR for providers implementing MachinePool Machines. |
Ah - understood. So this PR depends on #8842 being merged first in that case? |
It's the opposite, tests won't pass on #8842 without this change being merged first |
/retest |
@killianmuldoon Thanks for the quick review! It looks like a test flake for the e2e test since it's failing with a webhook issue. |
@killianmuldoon are all your comments resolved/addressed? |
/test pull-cluster-api-e2e-full-main |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon 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 |
What this PR does / why we need it: The test framework runs a test to ensure that ownerRefs are resilient, i.e. if the ownerRef is deleted, a controller can set it back. The MachinePool controller only checks to see if the MachinePool Machine exists, not that their ownerRefs are up to date. It also removes redundant code for setting the infraMachine ownerRef as that is already being done by the Machine controller.
#8842 is also rebased off of this PR.
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 #