From 8defaaa5cb379ddfa8dc0900b1456690f7347a8f Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Fri, 13 Oct 2023 03:53:02 +0530 Subject: [PATCH] fix arguments Signed-off-by: Shubham Gupta --- charts/redis-cluster/templates/redis-cluster.yaml | 2 +- charts/redis-replication/templates/redis-replication.yaml | 2 +- charts/redis-sentinel/templates/redis-sentinel.yaml | 2 +- charts/redis/templates/redis-standalone.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/redis-cluster/templates/redis-cluster.yaml b/charts/redis-cluster/templates/redis-cluster.yaml index eb036bc6..a29e0fe8 100644 --- a/charts/redis-cluster/templates/redis-cluster.yaml +++ b/charts/redis-cluster/templates/redis-cluster.yaml @@ -74,7 +74,7 @@ spec: {{- if and .Values.sidecars (ne .Values.sidecars.name "") (ne .Values.sidecars.image) }} sidecars: {{ include "sidecar.properties" | nindent 4 }} {{- end }} - {{- if and .Values.initContainers .Values.initContainer.enabled (ne .Values.initContainers.image) }} + {{- if and .Values.initContainers .Values.initContainer.enabled (ne .Values.initContainers.image "") }} initContainers: {{ include "initContainer.properties" | nindent 4 }} {{- end }} {{- if .Values.env }} diff --git a/charts/redis-replication/templates/redis-replication.yaml b/charts/redis-replication/templates/redis-replication.yaml index e850d2a1..b26c88dc 100644 --- a/charts/redis-replication/templates/redis-replication.yaml +++ b/charts/redis-replication/templates/redis-replication.yaml @@ -73,7 +73,7 @@ spec: secret: secretName: {{ .Values.acl.secret.secretName | quote }} {{- end }} - {{- if and .Values.initContainers .Values.initContainer.enabled (ne .Values.initContainers.image) }} + {{- if and .Values.initContainers .Values.initContainer.enabled (ne .Values.initContainers.image "") }} initContainers: {{ include "initContainer.properties" | nindent 4 }} {{- end }} {{- if and .Values.sidecars (ne .Values.sidecars.name "") (ne .Values.sidecars.image) }} diff --git a/charts/redis-sentinel/templates/redis-sentinel.yaml b/charts/redis-sentinel/templates/redis-sentinel.yaml index dd15cd45..4fabd5b1 100644 --- a/charts/redis-sentinel/templates/redis-sentinel.yaml +++ b/charts/redis-sentinel/templates/redis-sentinel.yaml @@ -86,7 +86,7 @@ spec: secret: secretName: {{ .Values.acl.secret.secretName | quote }} {{- end }} - {{- if and .Values.initContainers .Values.initContainer.enabled (ne .Values.initContainers.image) }} + {{- if and .Values.initContainers .Values.initContainer.enabled (ne .Values.initContainers.image "") }} initContainers: {{ include "initContainer.properties" | nindent 4 }} {{- end }} {{- if and .Values.sidecars (ne .Values.sidecars.name "") (ne .Values.sidecars.image) }} diff --git a/charts/redis/templates/redis-standalone.yaml b/charts/redis/templates/redis-standalone.yaml index 8923556c..a38bbcf5 100644 --- a/charts/redis/templates/redis-standalone.yaml +++ b/charts/redis/templates/redis-standalone.yaml @@ -72,7 +72,7 @@ spec: secret: secretName: {{ .Values.acl.secret.secretName | quote }} {{- end }} - {{- if and .Values.initContainers .Values.initContainer.enabled (ne .Values.initContainers.image) }} + {{- if and .Values.initContainers .Values.initContainer.enabled (ne .Values.initContainers.image "") }} initContainers: {{ include "initContainer.properties" | nindent 4 }} {{- end }} {{- if and .Values.sidecars (ne .Values.sidecars.name "") (ne .Values.sidecars.image) }}