Skip to content
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

🐛 Add finalizer reconcile for Topology MachineSets and MachineDeployments #7536

Merged

Conversation

killianmuldoon
Copy link
Contributor

@killianmuldoon killianmuldoon commented Nov 11, 2022

Signed-off-by: killianmuldoon kmuldoon@vmware.com

Add reconciliation for the finalizer of MachineSets controlled by the topology controller. This ensures that if the finalizer is lost for any reason other than being removed by the topology/machineset controller it will be re-reconciled.

Fixes: #7530

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 11, 2022
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 15, 2022
@sbueringer
Copy link
Member

One nit, otherwise lgtm

Would be interesting to see if we can implement the MD finalizer thing in the same way on the other PR

@killianmuldoon killianmuldoon changed the title 🐛 Add finalizer reconcile for Topology MachineSets 🐛 Add finalizer reconcile for Topology MachineSets and MachineDeployments Nov 15, 2022
@sbueringer
Copy link
Member

/cherry-pick release-1.2

@k8s-infra-cherrypick-robot

@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:

/cherry-pick release-1.2

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.

@sbueringer
Copy link
Member

/cherry-pick release-1.3

@k8s-infra-cherrypick-robot

@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.3 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.3

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.

@sbueringer
Copy link
Member

(bug fix we want in both release series)

@killianmuldoon killianmuldoon force-pushed the fix/machineset-finalizer branch 3 times, most recently from 974d79b to 193ff11 Compare November 15, 2022 19:47
@sbueringer
Copy link
Member

Thank you very much!!

/lgtm

@sbueringer
Copy link
Member

/assign @fabriziopandini

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 16, 2022
@fabriziopandini
Copy link
Member

Great work nailing down this problem!
/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 17, 2022
@sbueringer
Copy link
Member

/check-cla

Signed-off-by: killianmuldoon <kmuldoon@vmware.com>
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 17, 2022
@sbueringer
Copy link
Member

sbueringer commented Nov 17, 2022

Thx!

(@fabriziopandini we had to commit --amend push force to re-trigger EasyCLA, it was stuck somehow)

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 17, 2022
@k8s-ci-robot k8s-ci-robot merged commit 3ab9a01 into kubernetes-sigs:main Nov 17, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.4 milestone Nov 17, 2022
@k8s-infra-cherrypick-robot

@sbueringer: #7536 failed to apply on top of branch "release-1.2":

Applying: Add finalizer reconcile for Topology MachineDeployments and MachineSets
Using index info to reconstruct a base tree...
M	internal/controllers/machinedeployment/machinedeployment_sync.go
M	internal/controllers/topology/cluster/cluster_controller_test.go
M	internal/controllers/topology/cluster/desired_state.go
M	internal/controllers/topology/cluster/desired_state_test.go
M	internal/controllers/topology/machinedeployment/machinedeployment_controller.go
M	internal/controllers/topology/machineset/machineset_controller.go
M	internal/test/builder/builders.go
M	internal/test/builder/zz_generated.deepcopy.go
Falling back to patching base and 3-way merge...
Auto-merging internal/test/builder/zz_generated.deepcopy.go
Auto-merging internal/test/builder/builders.go
Auto-merging internal/controllers/topology/machineset/machineset_controller.go
CONFLICT (content): Merge conflict in internal/controllers/topology/machineset/machineset_controller.go
Auto-merging internal/controllers/topology/machinedeployment/machinedeployment_controller.go
CONFLICT (content): Merge conflict in internal/controllers/topology/machinedeployment/machinedeployment_controller.go
Auto-merging internal/controllers/topology/cluster/desired_state_test.go
Auto-merging internal/controllers/topology/cluster/desired_state.go
Auto-merging internal/controllers/topology/cluster/cluster_controller_test.go
Auto-merging internal/controllers/machinedeployment/machinedeployment_sync.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Add finalizer reconcile for Topology MachineDeployments and MachineSets
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherry-pick release-1.2

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.

@k8s-infra-cherrypick-robot

@sbueringer: new pull request created: #7555

In response to this:

/cherry-pick release-1.3

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Topology MachineDeploymentFinalizer not properly applied
6 participants