c91e7447 by Adam Heath

Switch extraConfigMap/extraSecrets/generatedComponent.sources to

dictionaries.
1 parent 1306dd3f
......@@ -6,7 +6,7 @@ metadata:
{{- include "moqui.labels" . | nindent 4 }}
data: {{ .Values.configMap | toYaml | nindent 2 }}
{{- range .Values.extraConfigMaps }}
{{- range $key, $value := .Values.extraConfigMaps }}
---
{{ . | toYaml }}
{{ $value | toYaml }}
{{- end }}
......
......@@ -51,7 +51,10 @@ spec:
- name: generated-component
projected:
sources:
{{ .Values.generatedComponent.sources | toYaml | nindent 14 }}
{{- range $key, $value := .Values.generatedComponent.sources }}
-
{{ $value | toYaml | nindent 14 }}
{{- end }}
{{- end }}
initContainers:
......
......@@ -20,7 +20,7 @@ metadata:
stringData:
elasticsearch_password: admin
{{- range .Values.extraSecrets }}
{{- range $key, $value := .Values.extraSecrets }}
---
{{ . | toYaml }}
{{ $value | toYaml }}
{{- end }}
......
......@@ -19,8 +19,8 @@ configMap:
extraEnvs: []
extraConfigMaps: []
extraSecrets: []
extraConfigMaps: {}
extraSecrets: {}
generatedComponent:
enabled: false
sources: []
......