Added additional environment vars

This commit is contained in:
2023-03-27 21:12:31 +00:00
parent 1b01d64471
commit a5b13a2266
3 changed files with 10 additions and 2 deletions

View File

@@ -32,7 +32,11 @@ data:
IMPORT_DATABASE: {{ .Values.site.init.database.url }}
FORCE_IMPORT_DB: {{ .Values.site.init.database.force | default "false" | quote }}
{{- end }}
{{- if .Values.site.additional_env }}
{{- range $k, $v := .Values.site.additional_env }}
{{ $k }}: {{ $v }}
{{- end }}
{{- end }}
---
kind: ConfigMap
apiVersion: v1

View File

@@ -27,6 +27,10 @@ site:
# The main URL for the website
url: "www.mycustomer.com"
# Additional environment variables to pass to the container
additional_env: {}
# MY_ENV_VAR: "value"
# Create sites with another main domain for WP,
# but the rest of the components named according to site-tld
# overrideMainUrl: ""