From bf07e5282d396b5101498e074d823e81658168e8 Mon Sep 17 00:00:00 2001 From: Ronan LE MEILLAT Date: Fri, 8 Dec 2023 13:07:17 +0100 Subject: [PATCH] add relay host environment variables --- .../templates/deployments-hcfmailerplus.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/k8s/helm/hcfmailerplus/templates/deployments-hcfmailerplus.yaml b/k8s/helm/hcfmailerplus/templates/deployments-hcfmailerplus.yaml index 660470cc..0e5c7687 100644 --- a/k8s/helm/hcfmailerplus/templates/deployments-hcfmailerplus.yaml +++ b/k8s/helm/hcfmailerplus/templates/deployments-hcfmailerplus.yaml @@ -98,6 +98,22 @@ spec: secretKeyRef: name: mysql key: MYSQL_PASSWORD + {{ if .Values.app.RELAY_HOST }} + - name: RELAY_HOST + value: {{.Values.app.RELAY_HOST | quote}} + {{ end }} + {{ if .Values.app.RELAY_HOST_PORT }} + - name: RELAY_HOST_PORT + value: {{.Values.app.RELAY_HOST_PORT | quote}} + {{ end }} + {{ if .Values.app.RELAY_HOST_USER }} + - name: RELAY_HOST_USER + value: {{.Values.app.RELAY_HOST_USER | quote}} + {{ end }} + {{ if .Values.app.RELAY_HOST_PASSWORD }} + - name: RELAY_HOST_PASSWORD + value: {{.Values.app.RELAY_HOST_PASSWORD | quote}} + {{ end }} image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}" {{if .Values.image.debug }} command: