a7011262 by Adam Heath

This should allow for customData files to be made available via

ConfigMap/Secret, and then a projected volume used to place the files
into a location that moqui will see at data load time.
1 parent 90b2ad5b
......@@ -47,6 +47,13 @@ spec:
{{- include "moqui.storage-pvc-volume" (list . "log") | nindent 8 }}
{{- include "moqui.storage-pvc-volume" (list . "sessions") | nindent 8 }}
{{- include "moqui.storage-pvc-volume" (list . "txlog") | nindent 8 }}
{{- if .Values.customData }}
- name: custom-data
projected:
sources:
{{ .Values.customData | toYaml | nindent 14 }}
{{- end }}
initContainers:
{{- if (eq .Values.configMap.entity_ds_db_conf "postgres") }}
{{- if .Values.postgresql.jdbcImage.enabled }}
......@@ -121,6 +128,10 @@ spec:
{{- include "moqui.storage-mount" (list . "log" "/opt/moqui/runtime/log") | nindent 12 }}
{{- include "moqui.storage-mount" (list . "sessions" "/opt/moqui/runtime/sessions") | nindent 12 }}
{{- include "moqui.storage-mount" (list . "txlog" "/opt/moqui/runtime/txlog") | nindent 12 }}
{{- if .Values.customData }}
- mountPath: /opt/moqui/runtime/ecomponent/customData/data
name: customData
{{- end }}
{{- end }}
- name: load
......
......@@ -21,6 +21,7 @@ extraEnvs: []
extraConfigMaps: []
extraSecrets: []
customData: []
persistence:
db:
......