diff --git a/k8sutils/redis-cluster.go b/k8sutils/redis-cluster.go index dc1e11fd1..bfecb9ab2 100644 --- a/k8sutils/redis-cluster.go +++ b/k8sutils/redis-cluster.go @@ -172,7 +172,7 @@ func generateRedisClusterContainerParams(cl kubernetes.Interface, logger logr.Lo if cr.Spec.RedisExporter != nil { containerProp.RedisExporterImage = cr.Spec.RedisExporter.Image containerProp.RedisExporterImagePullPolicy = cr.Spec.RedisExporter.ImagePullPolicy - containerProp.SecurityContext = cr.Spec.RedisExporter.SecurityContext + containerProp.RedisExporterSecurityContext = cr.Spec.RedisExporter.SecurityContext if cr.Spec.RedisExporter.Resources != nil { containerProp.RedisExporterResources = cr.Spec.RedisExporter.Resources