Skip to content

Commit cfaa2eb

Browse files
committed
fix: ampm remove finalizer and avoid recreation if VMSS is deleting
1 parent be872ad commit cfaa2eb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

exp/controllers/azuremachinepoolmachine_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ func (ampmr *AzureMachinePoolMachineController) reconcileDelete(ctx context.Cont
329329
controllerutil.RemoveFinalizer(machineScope.AzureMachinePoolMachine, infrav1exp.AzureMachinePoolMachineFinalizer)
330330
return reconcile.Result{}, nil
331331
}
332-
333332
if !machineScope.AzureMachinePool.ObjectMeta.DeletionTimestamp.IsZero() {
334333
log.Info("Skipping VMSS VM deletion as VMSS delete will delete individual instances")
335334

0 commit comments

Comments
 (0)