Skip to content

Commit

Permalink
Change list to map handling (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm authored Apr 17, 2024
1 parent 23c118a commit 9d6ee97
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions charts/k8ssandra-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9d6ee97

Please sign in to comment.