Scaling down a MachineDeployment with Machines with the same delete priority may result in too many machines being deleted #6299
Labels
area/machine
Issues or PRs related to machine lifecycle management
kind/bug
Categorizes issue or PR as related to a bug.
Milestone
What steps did you take and what happened:
Oldest
orNewest
.Since all of the currently provisioning machines have the same delete priority as any machine with a non-zero deletion timestamp, this can result in multiple machines (all of the currently provisioning machines) to be deleted.
What did you expect to happen:
Exactly one machine should be deleted when scaling down a MachineDeployment by 1.
Environment:
kubectl version
): Tested with 1.21.9, 1.21.10, 1.22.3/etc/os-release
): Any/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels]
/area machine
The text was updated successfully, but these errors were encountered: