-
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 node label propagation #8427
🐛 fix node label propagation #8427
Conversation
/test pull-cluster-api-e2e-full-main |
/retest |
1 similar comment
/retest |
internal/controllers/machine/machine_controller_noderef_test.go
Outdated
Show resolved
Hide resolved
internal/controllers/machine/machine_controller_noderef_test.go
Outdated
Show resolved
Hide resolved
@ykakarap thanks for the detailed review, all comment addressed |
/test pull-cluster-api-e2e-full-main |
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.
Just nits
internal/controllers/machine/machine_controller_noderef_test.go
Outdated
Show resolved
Hide resolved
/test pull-cluster-api-e2e-full-main |
One last nit then looks good to me |
bc23d62
to
c21b898
Compare
/test pull-cluster-api-e2e-full-main |
/cherry-pick release-1.4 |
@ykakarap: once the present PR merges, I will cherry-pick it on top of release-1.4 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. |
/lgtm |
LGTM label has been added. Git tree hash: f60110c36293b3992df4a70855f4a64efe7c7ccf
|
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
We are waiting for a last test in Azure to complete, then we are going to merge this |
[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 |
@ykakarap: new pull request created: #8444 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. |
/area machine |
What this PR does / why we need it:
We started using SSA to patch nodes when doing machine->label propagation, but we discovered that there is an issue in node.Status.Address that has a merge key that is not sufficiently unique, which can cause data corruption when it is merged. The issue was seen previously in kubernetes/kubernetes#79391
So are are reverting to SSA to a strategic merge patch + an annotation to keep track of labels propagated from machine to node which is required to properly handle the deletion use case
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 #8417