-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[release-1.12] 🐛 fix: use MachineSet template values in completeMoveMachine for in-place updates #13085
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
[release-1.12] 🐛 fix: use MachineSet template values in completeMoveMachine for in-place updates #13085
Conversation
…ce updates Previously, the completeMoveMachine function incorrectly used the current Machine's Version and FailureDomain values when performing in-place updates. This caused the Machine to retain its old values instead of being updated to the latest values from the MachineSet spec template. This fix ensures that during in-place updates, the Machine is updated with the correct Version and FailureDomain values from the MachineSet template spec rather than preserving the old Machine values. Changes: - Update completeMoveMachine to use s.machineSet.Spec.Template.Spec.Version instead of currentMachine.Spec.Version - Update completeMoveMachine to use s.machineSet.Spec.Template.Spec.FailureDomain instead of currentMachine.Spec.FailureDomain - Add TestReconciler_completeMoveMachine unit test to verify the fix
|
/test |
|
@fabriziopandini: The The following commands are available to trigger optional jobs: Use 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-sigs/prow repository. |
|
/test pull-cluster-api-e2e-release-1-12 |
|
/area machine set |
|
@fabriziopandini: The label(s) 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-sigs/prow repository. |
|
/area machineset |
|
/test pull-cluster-api-e2e-release-1-12 |
1 similar comment
|
/test pull-cluster-api-e2e-release-1-12 |
|
/lgtm |
|
LGTM label has been added. Git tree hash: cfd01757dabc593052b08ee838cfa33d987cfd56
|
|
[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 |
23a2611
into
kubernetes-sigs:release-1.12
This is an automated cherry-pick of #13059
/assign fabriziopandini