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 diff --git a/controllers/redisreplication_controller.go b/controllers/redisreplication_controller.go index 9cd8f16e1..20fee1e59 100644 --- a/controllers/redisreplication_controller.go +++ b/controllers/redisreplication_controller.go @@ -58,7 +58,7 @@ func (r *RedisReplicationReconciler) Reconcile(ctx context.Context, req ctrl.Req return intctrlutil.RequeueWithError(err, reqLogger, "") } if !r.IsStatefulSetReady(ctx, r.K8sClient, instance, instance.Name, instance.Namespace) { - return intctrlutil.Reconciled() + return intctrlutil.RequeueAfter(reqLogger, time.Second*10, "") } var realMaster string