Skip to content

Commit

Permalink
refactor: reconcile on statefulset update
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <yang.wu@daocloud.io>
  • Loading branch information
drivebyer committed Jun 14, 2024
1 parent 93d4ea2 commit 1f45a61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/redisreplication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package controllers

import (
"context"
"errors"
"strconv"
"time"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f45a61

Please sign in to comment.