-
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
🐛 Implement template deletion for topology-owned MD and MS #5191
🐛 Implement template deletion for topology-owned MD and MS #5191
Conversation
/assign @vincepri |
6ed296b
to
a087030
Compare
d5f8a8b
to
9313b24
Compare
Removed WIP. Fixed a few minor things and tested it locally (for details see PR description) |
Reviewing now |
A few notes about why the current implementation is only one MD reconciler:
Overall, I now think it would be better to split up the reconciler in one MD and one MS reconciler to simplify the logic. The new logic would just be:
I think it would be simpler because in the current implementation one problem is that I'm reconciling a MachineDeployment which could be already gone. Give @vincepri's suggestion here. I would also inline this behaviour in the current MD/MS controllers. @fabriziopandini / @vincepri WDYT |
(in case we are not moving this into exiting controllers) WRT to the discussion one controller/two controllers,I'm ok with both approaches; in this case if doable having separated controllers, this gives a nice symmetry with existing controllers and a cleaner separation of concerns. |
9313b24
to
4438fa3
Compare
e9b6986
to
19d5e60
Compare
@enxebre @vincepri @fabriziopandini PTAL. I separated the reconcilers as discussed in Slack. Now it should be pretty clear how the reconciliation logic looks like. |
77624b9
to
8d90dc1
Compare
Findings should be addressed. PTAL @enxebre @fabriziopandini @vincepri
#5153 has been merged, rebased on top of it and also squashed the commits |
8d90dc1
to
75fcfc1
Compare
/hold cancel (#5153 merged + resolved open TODOs accordingly) |
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.
Only a nit then lgtm for me
3c31410
to
41017ee
Compare
@enxebre @vincepri @fabriziopandini Should work again (ci works without topology, and locally template rotation and MD deletion works - we really need topology e2e tests :)) |
changes lgtm, pending squash / others feedback after latest changes |
lgtm after squashing |
Signed-off-by: Stefan Büringer [email protected] Co-authored-by: fabriziopandini <[email protected]>
41017ee
to
ae31c7c
Compare
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.
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vincepri 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 |
@enxebre Over to you to unhold |
/hold cancel |
Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Before this PR, our topology code:
This PR aims to solve this problem. The high-level concept is:
Note: this is only done for topology-owned MD and MS
tl;dr we cleanup templates which would otherwise be orphaned during deletion of topology-owned MachineDeployments and MachineSets
I tested the following locally:
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 #