332c7a5f by Adam Heath

Add extraEnvs support.

1 parent 24fb3db8
...@@ -183,3 +183,9 @@ spec: ...@@ -183,3 +183,9 @@ spec:
183 {{- end }} 183 {{- end }}
184 {{- end }} 184 {{- end }}
185 185
186 {{- define "moqui.extraEnvs" }}
187 {{- if .Values.extraEnvs }}
188 {{ .Values.extraEnvs | toYaml }}
189 {{- end }}
190 {{- end }}
191
......
...@@ -111,6 +111,7 @@ spec: ...@@ -111,6 +111,7 @@ spec:
111 optional: false 111 optional: false
112 - name: elasticsearch_url 112 - name: elasticsearch_url
113 value: {{ include "moqui.opensearch-url" . }} 113 value: {{ include "moqui.opensearch-url" . }}
114 {{- include "moqui.extraEnvs" . | nindent 12 }}
114 volumeMounts: 115 volumeMounts:
115 - mountPath: /opt/moqui/runtime/lib 116 - mountPath: /opt/moqui/runtime/lib
116 name: runtime-lib 117 name: runtime-lib
......
...@@ -15,6 +15,8 @@ configMap: ...@@ -15,6 +15,8 @@ configMap:
15 entity_ds_user: "moqui" 15 entity_ds_user: "moqui"
16 elasticsearch_user: "admin" 16 elasticsearch_user: "admin"
17 17
18 extraEnvs: []
19
18 persistence: 20 persistence:
19 db: 21 db:
20 enabled: true 22 enabled: true
......