Skip to content

Commit dff64cc

Browse files
committed
add cluster being deleted check in requeueIfClusterNotReady
1 parent 263dbc1 commit dff64cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

controllers/cloudstackfailuredomain_controller.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ func (r *CloudStackFailureDomainReconciliationRunner) GetAllMachinesInFailureDom
157157
// RequeueIfClusterNotReady check cluster to see if there is any rolling update going on.
158158
func (r *CloudStackFailureDomainReconciliationRunner) RequeueIfClusterNotReady() (ctrl.Result, error) {
159159
if len(r.Machines) > 0 {
160+
if !r.CAPICluster.DeletionTimestamp.IsZero() {
161+
return ctrl.Result{}, nil
162+
}
160163
for _, condition := range r.CAPICluster.Status.Conditions {
161164
if condition.Type == conditionTypeReady && condition.Status == conditionStatusFalse {
162165
return r.RequeueWithMessage("cluster status not ready,")

0 commit comments

Comments
 (0)