diff --git a/controllers/redisreplication_controller.go b/controllers/redisreplication_controller.go index 2d929c9de..193cc3de9 100644 --- a/controllers/redisreplication_controller.go +++ b/controllers/redisreplication_controller.go @@ -48,7 +48,7 @@ func (r *RedisReplicationReconciler) Reconcile(ctx context.Context, req ctrl.Req followerReplicas := instance.Spec.GetReplicationCounts("replication") - leaderReplicas totalReplicas := leaderReplicas + followerReplicas - if err = k8sutils.HandleRedisReplicationFinalizer(instance, r.Client); err != nil { + if err = k8sutils.HandleRedisReplicationFinalizer(r.Client, r.K8sClient, r.Log, instance); err != nil { return ctrl.Result{}, err }