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.
Showing
2 changed files
with
12 additions
and
0 deletions
... | @@ -47,6 +47,13 @@ spec: | ... | @@ -47,6 +47,13 @@ spec: |
47 | {{- include "moqui.storage-pvc-volume" (list . "log") | nindent 8 }} | 47 | {{- include "moqui.storage-pvc-volume" (list . "log") | nindent 8 }} |
48 | {{- include "moqui.storage-pvc-volume" (list . "sessions") | nindent 8 }} | 48 | {{- include "moqui.storage-pvc-volume" (list . "sessions") | nindent 8 }} |
49 | {{- include "moqui.storage-pvc-volume" (list . "txlog") | nindent 8 }} | 49 | {{- include "moqui.storage-pvc-volume" (list . "txlog") | nindent 8 }} |
50 | {{- if .Values.customData }} | ||
51 | - name: custom-data | ||
52 | projected: | ||
53 | sources: | ||
54 | {{ .Values.customData | toYaml | nindent 14 }} | ||
55 | {{- end }} | ||
56 | |||
50 | initContainers: | 57 | initContainers: |
51 | {{- if (eq .Values.configMap.entity_ds_db_conf "postgres") }} | 58 | {{- if (eq .Values.configMap.entity_ds_db_conf "postgres") }} |
52 | {{- if .Values.postgresql.jdbcImage.enabled }} | 59 | {{- if .Values.postgresql.jdbcImage.enabled }} |
... | @@ -121,6 +128,10 @@ spec: | ... | @@ -121,6 +128,10 @@ spec: |
121 | {{- include "moqui.storage-mount" (list . "log" "/opt/moqui/runtime/log") | nindent 12 }} | 128 | {{- include "moqui.storage-mount" (list . "log" "/opt/moqui/runtime/log") | nindent 12 }} |
122 | {{- include "moqui.storage-mount" (list . "sessions" "/opt/moqui/runtime/sessions") | nindent 12 }} | 129 | {{- include "moqui.storage-mount" (list . "sessions" "/opt/moqui/runtime/sessions") | nindent 12 }} |
123 | {{- include "moqui.storage-mount" (list . "txlog" "/opt/moqui/runtime/txlog") | nindent 12 }} | 130 | {{- include "moqui.storage-mount" (list . "txlog" "/opt/moqui/runtime/txlog") | nindent 12 }} |
131 | {{- if .Values.customData }} | ||
132 | - mountPath: /opt/moqui/runtime/ecomponent/customData/data | ||
133 | name: customData | ||
134 | {{- end }} | ||
124 | {{- end }} | 135 | {{- end }} |
125 | 136 | ||
126 | - name: load | 137 | - name: load | ... | ... |
-
Please register or sign in to post a comment