-
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
🐛 Delete unused ControlPlane InfrastructureMachineTemplates on rotation #6399
🐛 Delete unused ControlPlane InfrastructureMachineTemplates on rotation #6399
Conversation
// If the controlPlane has infrastructureMachines and the InfrastructureMachineTemplate has changed on this reconcile | ||
// delete the old template. | ||
// This is a best effort deletion only and may leak templates if an error occurs during reconciliation. | ||
// TODO:(killianmuldoon) Make a more holistic template deletion flow. |
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.
I'll create an issue covering over the problems with the way we currently handle template rotation.
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.
Maybe we shouldn't have this todo here (when we merge this PR). I think it's better to just have an issue describing the holistic problem vs having the TODO here specifically (as the problem is much more widespread then just this location)
/lgtm |
/lgtm |
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.
Overall looks good. If not already done, I think one manual test would be good to ensure we're not missing anything. (just create a classy cluster and rotate the inframachinetemplate of the control plane once + verify the old one is gone)
// If the controlPlane has infrastructureMachines and the InfrastructureMachineTemplate has changed on this reconcile | ||
// delete the old template. | ||
// This is a best effort deletion only and may leak templates if an error occurs during reconciliation. | ||
// TODO:(killianmuldoon) Make a more holistic template deletion flow. |
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.
Maybe we shouldn't have this todo here (when we merge this PR). I think it's better to just have an issue describing the holistic problem vs having the TODO here specifically (as the problem is much more widespread then just this location)
…reconcile Signed-off-by: killianmuldoon <[email protected]>
c804f44
to
116c751
Compare
@fabriziopandini @sbueringer Addressed the PR comments. |
/retest Looks like this was a network related issue to github while fetching manifests |
Thx! /lgtm |
/lgtm |
[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 |
Delete ControlPlane InfrastructureMachineTemplates on a best effort basis once they have been rotated during a reconciliation loop.
Signed-off-by: killianmuldoon [email protected]
Fixes #6375
@chrischdi @fabriziopandini