Skip to content
Snippets Groups Projects
Commit acad4501708b authored by Xavier Garnier's avatar Xavier Garnier :bicyclist:
Browse files

feat(mountConfigMaps)!: change mountConfigMaps from [] to {}

parent aa11dece86f7
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,8 @@
metadata:
name: {{ .Release.Name}}-config-files
data:
{{- range $c := .Values.mountConfigMaps }}
{{ $c.key }} : |-
{{ $c.data | indent 4 }}
{{- range $k,$v := .Values.mountConfigMaps }}
{{ $k }}: |-
{{ $v.data | indent 4 }}
{{ end }}
{{ end }}
......@@ -71,5 +71,5 @@
- name: {{ .Values.volume.name }}
mountPath: {{ .Values.volume.mountPath }}
{{- end }}
{{- range $c := .Values.mountConfigMaps }}
{{- range $k,$v := .Values.mountConfigMaps }}
- name: config-files
......@@ -75,6 +75,6 @@
- name: config-files
mountPath: {{ $c.mountPath }}
subPath: {{ $c.key }}
mountPath: {{ $v.mountPath }}
subPath: {{ $k }}
{{ end }}
{{- end }}
resources:
......
......@@ -100,8 +100,8 @@
# password: password
#
mountConfigMaps: []
# - key: "config.yaml" # keys must be unique
# mountPath: "/etc/project/config.yaml"
# data: |-
# some content
mountConfigMaps: {}
# config.yaml:
# mountPath: /etc/project/config.yaml
# data: |-
# some content
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment