We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f34ff17 commit ec71d7cCopy full SHA for ec71d7c
exp/controllers/azuremachinepoolmachine_controller.go
@@ -337,6 +337,12 @@ func (ampmr *AzureMachinePoolMachineController) reconcileDelete(ctx context.Cont
337
return reconcile.Result{}, nil
338
}
339
340
+ if machineScope.ProvisioningState() == infrav1.Deleting || machineScope.ProvisioningState() == infrav1.Deleted {
341
+ log.V(2).Info(fmt.Sprintf("Skipping VMSS VM deletion as VMSS VM is already %s", machineScope.ProvisioningState()))
342
+ controllerutil.RemoveFinalizer(machineScope.AzureMachinePoolMachine, infrav1exp.AzureMachinePoolMachineFinalizer)
343
+ return reconcile.Result{}, nil
344
+ }
345
+
346
log.Info("Deleting AzureMachinePoolMachine")
347
348
// deleting a single machine
0 commit comments