Skip to content

Commit

Permalink
Support recreate statefulset of redissentinel (#607)
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer authored Sep 5, 2023
1 parent a822623 commit e605cb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k8sutils/redis-sentinel.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e605cb5

Please sign in to comment.