Skip to content

Commit d53c549

Browse files
author
Joshua Reed
committed
Wait for cluster readiness.
1 parent 77894f9 commit d53c549

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

controllers/cloudstackmachine_controller.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,14 @@ func (r *CloudStackMachineReconciler) Reconcile(ctx context.Context, req ctrl.Re
137137
}
138138
}
139139

140+
if !csCluster.Status.Ready {
141+
log.Info("CloudStackCluster not ready. Requeuing.")
142+
return ctrl.Result{RequeueAfter: requeueTimeout}, nil
143+
}
144+
140145
if util.IsControlPlaneMachine(capiMachine) &&
141146
(capiMachine.Spec.FailureDomain == nil || *capiMachine.Spec.FailureDomain == "") {
142-
log.Info("CloudStackCluster ZoneID not initialized. Likely not ready.")
147+
log.Info("CAPI zone placement specification not yet set. Requeuing.")
143148
return ctrl.Result{RequeueAfter: requeueTimeout}, nil
144149
}
145150

0 commit comments

Comments
 (0)