From fe1aa43af20dc1dfe05d2d6d1a16147012121e1b Mon Sep 17 00:00:00 2001 From: laurentiusoica Date: Fri, 14 Jun 2024 10:27:04 +0000 Subject: [PATCH] fix: RedisExporterSecurityContext instead of SecurityContext Signed-off-by: laurentiusoica --- k8sutils/redis-cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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