From 9d6ee9783b7b4309ab177c65c06550369cc72c13 Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Wed, 17 Apr 2024 19:37:04 +0300 Subject: [PATCH] Change list to map handling (#1286) --- charts/k8ssandra-operator/templates/deployment.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/k8ssandra-operator/templates/deployment.yaml b/charts/k8ssandra-operator/templates/deployment.yaml index c8f3dadc9..669244721 100644 --- a/charts/k8ssandra-operator/templates/deployment.yaml +++ b/charts/k8ssandra-operator/templates/deployment.yaml @@ -55,9 +55,15 @@ spec: - name: DEFAULT_REGISTRY value: {{ .Values.image.registryOverride | quote }} {{- end }} - {{- if .Values.imagePullSecrets}} + {{- with .Values.imagePullSecrets }} - name: IMAGE_PULL_SECRETS - value: {{ join "," .Values.imagePullSecrets | quote }} +{{- $list := list -}} +{{- range $k, $v := . -}} +{{- range $kk, $vv := $v }} +{{- $list = append $list $vv -}} +{{- end -}} +{{- end }} + value: {{ join "," $list }} {{- end }} image: {{ include "k8ssandra-common.flattenedImage" .Values.image }} imagePullPolicy: {{ .Values.image.pullPolicy }}