-
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 MS remediating conditions #11382
🌱 Implement MS remediating conditions #11382
Conversation
/test pull-cluster-api-e2e-main |
93aaf4c
to
457f58a
Compare
457f58a
to
6a322c9
Compare
6a322c9
to
8c1c686
Compare
Signed-off-by: Stefan Büringer [email protected]
8c1c686
to
039c6c1
Compare
/test pull-cluster-api-e2e-main |
internal/controllers/machineset/machineset_controller_status.go
Outdated
Show resolved
Hide resolved
// Calculate how many in flight machines we should remediate. | ||
// By default, we allow all machines to be remediated at the same time. | ||
maxInFlight := len(filteredMachines) | ||
maxInFlight := len(machinesToRemediate) |
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.
In the original versions this was len(all machines).
However, this should not make a difference because in both cases, if mf.Spec.Strategy.Remediation.MaxInFlight is not set, both values are good enough to ensure we can always delete all the machines to be remediated.
Is this correct?
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.
Yes! I was just thinking that len(machinesToRemediate)
makes more sense. As we are only remediating at most len(machinesToRemediate)
not all Machines.
I guess we could also just set this to MaxInt. Just slightly more obvious :) (I"ll probably do that)
Signed-off-by: Stefan Büringer [email protected]
/test pull-cluster-api-e2e-main |
/lgtm |
LGTM label has been added. Git tree hash: 981030dbf96041789407d4fab3dc236ed11b1bac
|
Great work! |
[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 |
* Implement MS remediating conditions Signed-off-by: Stefan Büringer [email protected] * Fix review findings * Fix review findings Signed-off-by: Stefan Büringer [email protected] --------- Signed-off-by: Stefan Büringer [email protected]
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Part of #11105