From 6bab7599a47b979053a8e931718ad2fa45e65d98 Mon Sep 17 00:00:00 2001 From: Wim Fournier Date: Tue, 23 May 2023 10:03:41 +0200 Subject: [PATCH] missed one Signed-off-by: Wim Fournier --- charts/argo-cd/templates/redis/deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/argo-cd/templates/redis/deployment.yaml b/charts/argo-cd/templates/redis/deployment.yaml index cc1a2d1a..20f37249 100755 --- a/charts/argo-cd/templates/redis/deployment.yaml +++ b/charts/argo-cd/templates/redis/deployment.yaml @@ -41,9 +41,11 @@ spec: hostAliases: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.redis.containerSecurityContext.enabled }} {{- with .Values.redis.securityContext }} securityContext: - {{- toYaml . | nindent 8 }} + {{- omit . "enabled" | toYaml | nindent 8 }} + {{- end }} {{- end }} {{- with .Values.redis.priorityClassName | default .Values.global.priorityClassName }} priorityClassName: {{ . }}