Skip to content

Commit 1af0334

Browse files
committed
fix wrong merge/rebase resolution
1 parent 863f713 commit 1af0334

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

azure/scope/strategies/machinepool_deployments/machinepool_deployment_strategy.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,6 @@ func (rollingUpdateStrategy rollingUpdateStrategy) SelectMachinesToDelete(ctx co
117117
return nil, err
118118
}
119119

120-
log := ctrl.LoggerFrom(ctx).V(4)
121-
122-
// first check if there are any machines with the delete annotations and in this case, only delete those. This allows CAPZ to work with autoscaler.
123-
deleteAnnotatedMachines := getDeleteAnnotatedMachines(machinesByProviderID)
124-
if len(deleteAnnotatedMachines) > 0 {
125-
log.Info("delete annotated machines", "desiredReplicaCount", desiredReplicaCount, "maxUnavailable", maxUnavailable, "deleteAnnotatedMachines", getProviderIDs(deleteAnnotatedMachines))
126-
return deleteAnnotatedMachines, nil
127-
}
128-
129120
var (
130121
order = func() func(machines []infrav1exp.AzureMachinePoolMachine) []infrav1exp.AzureMachinePoolMachine {
131122
switch rollingUpdateStrategy.DeletePolicy {

0 commit comments

Comments
 (0)