From 206e291a6aca8aa0ec8acfe5cd0bff3ac4b451f5 Mon Sep 17 00:00:00 2001 From: Christian Schlotter Date: Mon, 27 Nov 2023 18:14:19 +0100 Subject: [PATCH] clusterresourceset: requeue after 1 minute if ErrClusterLocked got hit --- .../internal/controllers/clusterresourceset_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exp/addons/internal/controllers/clusterresourceset_controller.go b/exp/addons/internal/controllers/clusterresourceset_controller.go index c17eb0cc5454..541b9f00c3e7 100644 --- a/exp/addons/internal/controllers/clusterresourceset_controller.go +++ b/exp/addons/internal/controllers/clusterresourceset_controller.go @@ -151,7 +151,7 @@ func (r *ClusterResourceSetReconciler) Reconcile(ctx context.Context, req ctrl.R // the current cluster because of concurrent access. if errors.Is(err, remote.ErrClusterLocked) { log.V(5).Info("Requeuing because another worker has the lock on the ClusterCacheTracker") - return ctrl.Result{Requeue: true}, nil + return ctrl.Result{RequeueAfter: time.Minute}, nil } return ctrl.Result{}, err }