Skip to content

Commit 3466430

Browse files
authored
fix(pod-lifecycle): improve replication management (#308)
Signed-off-by: Abhradeep Chakraborty <[email protected]>
1 parent b6e5770 commit 3466430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/dragonfly_instance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func (dfi *DragonflyInstance) checkReplicaRole(ctx context.Context, pod *corev1.
223223
}
224224
}
225225

226-
if redisRole != resources.Replica {
226+
if redisRole == resources.Master {
227227
return false, nil
228228
}
229229

0 commit comments

Comments
 (0)