diff --git a/k8sutils/redis-sentinel.go b/k8sutils/redis-sentinel.go index a6a786c7c..1b5e21880 100644 --- a/k8sutils/redis-sentinel.go +++ b/k8sutils/redis-sentinel.go @@ -109,7 +109,9 @@ func generateRedisSentinelParams(cr *redisv1beta2.RedisSentinel, replicas int32, } if cr.Spec.RedisExporter != nil { res.EnableMetrics = cr.Spec.RedisExporter.Enabled - + } + if _, found := cr.ObjectMeta.GetAnnotations()[AnnotationKeyRecreateStatefulset]; found { + res.RecreateStatefulSet = true } return res }