Skip to content

Commit 397ab68

Browse files
committed
clusterresourceset: requeue after 1 minute if ErrClusterLocked got hit
1 parent 43e24b9 commit 397ab68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exp/addons/internal/controllers/clusterresourceset_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ func (r *ClusterResourceSetReconciler) Reconcile(ctx context.Context, req ctrl.R
166166

167167
// Requeue if ErrClusterLocked was returned for one of the clusters.
168168
if errClusterLockedOccurred {
169-
return ctrl.Result{Requeue: true}, nil
169+
// Requeue after a minute to not end up in exponential delayed requeue which
170+
// could take up to 16m40s.
171+
return ctrl.Result{RequeueAfter: time.Minute}, nil
170172
}
171173

172174
return ctrl.Result{}, nil

0 commit comments

Comments
 (0)