From 96015fd4bc529df817ccedb821d22aed49e828b1 Mon Sep 17 00:00:00 2001 From: Jonathan Tong Date: Tue, 14 Dec 2021 15:56:58 -0800 Subject: [PATCH] Add availability set ready condition --- azure/scope/machine.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/azure/scope/machine.go b/azure/scope/machine.go index 230e2ec5a8b..5efcf011310 100644 --- a/azure/scope/machine.go +++ b/azure/scope/machine.go @@ -534,9 +534,7 @@ func (m *MachineScope) PatchObject(ctx context.Context) error { conditions.SetSummary(m.AzureMachine, conditions.WithConditions( infrav1.VMRunningCondition, - ), - conditions.WithStepCounterIfOnly( - infrav1.VMRunningCondition, + infrav1.AvailabilitySetReadyCondition, ), ) @@ -546,6 +544,7 @@ func (m *MachineScope) PatchObject(ctx context.Context) error { patch.WithOwnedConditions{Conditions: []clusterv1.ConditionType{ clusterv1.ReadyCondition, infrav1.VMRunningCondition, + infrav1.AvailabilitySetReadyCondition, }}) }