Skip to content

Commit 6674338

Browse files
committed
Requeue only if the CSCluster is not deleted
1 parent da48ff0 commit 6674338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/utils/base_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func (r *ReconciliationRunner) CheckOwnedObjectsDeleted(gvks ...schema.GroupVers
312312

313313
// RequeueIfCloudStackClusterNotReady requeues the reconciliation request if the CloudStackCluster is not ready.
314314
func (r *ReconciliationRunner) RequeueIfCloudStackClusterNotReady() (ctrl.Result, error) {
315-
if !r.CSCluster.Status.Ready {
315+
if r.CSCluster.DeletionTimestamp.IsZero() && !r.CSCluster.Status.Ready {
316316
r.Log.Info("CloudStackCluster not ready. Requeuing.")
317317
return ctrl.Result{RequeueAfter: RequeueTimeout}, nil
318318
}

0 commit comments

Comments
 (0)