From 1f45a618cce1626f3c5e170aa4ba664b2b541841 Mon Sep 17 00:00:00 2001 From: drivebyer Date: Fri, 14 Jun 2024 16:54:12 +0800 Subject: [PATCH] refactor: reconcile on statefulset update Signed-off-by: drivebyer --- controllers/redisreplication_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/redisreplication_controller.go b/controllers/redisreplication_controller.go index 04df3329d..5f4b9aff2 100644 --- a/controllers/redisreplication_controller.go +++ b/controllers/redisreplication_controller.go @@ -2,6 +2,7 @@ package controllers import ( "context" + "errors" "strconv" "time" @@ -73,7 +74,7 @@ func (r *RedisReplicationReconciler) Reconcile(ctx context.Context, req ctrl.Req // Check that the Leader and Follower are ready in redis replication if redisReplicationInfo.Status.ReadyReplicas != totalReplicas { - return intctrlutil.RequeueWithError(err, reqLogger, "Redis replication nodes are not ready yet", "Ready.Replicas", redisReplicationInfo.Status.ReadyReplicas, "Expected.Replicas", totalReplicas) + return intctrlutil.RequeueWithError(errors.New("redis replication nodes are not ready yet"), reqLogger, "") } var realMaster string