From f98328d7785bf400b585e7d422c00f09aabe3453 Mon Sep 17 00:00:00 2001 From: Jordan Rodgers Date: Fri, 2 Aug 2024 11:02:44 -0700 Subject: [PATCH] requeue if not ready Signed-off-by: Jordan Rodgers --- controllers/rediscluster_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/rediscluster_controller.go b/controllers/rediscluster_controller.go index 747678512..374d3791f 100644 --- a/controllers/rediscluster_controller.go +++ b/controllers/rediscluster_controller.go @@ -148,7 +148,7 @@ func (r *RedisClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request } if !(r.IsStatefulSetReady(ctx, r.K8sClient, instance, instance.Name+"-leader", instance.Namespace) && r.IsStatefulSetReady(ctx, r.K8sClient, instance, instance.Name+"-follower", instance.Namespace)) { - return intctrlutil.Reconciled() + return intctrlutil.RequeueAfter(reqLogger, time.Second*10, "Redis cluster is not ready") } // Mark the cluster status as bootstrapping if all the leader and follower nodes are ready