innacurate rke2controlplane status when maxSurge is set to 0 #356
Labels
kind/bug
Something isn't working
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened:
This issue was observed while searching for a workaround for a this issue in sylva project: https://gitlab.com/sylva-projects/sylva-core/-/issues/1412
It is somehow related to #355
When controlplane is upgraded with following strategy:
Controlplane Ready conditions is set to True whereas the last control plane machine is being rolled out:
We can indeed see that even if
mgmt-1353958806-rke2-capm3-virt-control-plane
machine is being deleted, it still has a REady=Trus condition:Consequently controller sets rke2controlplane as ready here as we have
len(readyMachines)) == replicas
Shouldn't it instead check that the count of machines that are Ready and UpToDate matches the spec.replicas?
The text was updated successfully, but these errors were encountered: