From 15f1602f87e3324cb91f668c8f93b0e5e6fbcf2c Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Thu, 14 Jul 2022 15:26:21 -0300 Subject: [PATCH] Added config for relay_host in mailauth --- charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml | 5 +++++ charts/mailproxy/v0.1.0/values.yaml | 1 + 2 files changed, 6 insertions(+) diff --git a/charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml b/charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml index de79fcb..40f8448 100644 --- a/charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml +++ b/charts/mailproxy/v0.1.0/templates/mailauth-deployment.yaml @@ -36,6 +36,11 @@ spec: containerPort: {{ $port.number }} protocol: {{ $port.protocol }} {{- end }} + {{- if .Values.mailauth.relayHost }} + env: + - name: RELAY_HOST + value: {{ .Values.mailauth.relayHost | quote }} + {{- end }} livenessProbe: tcpSocket: port: {{ (index .Values.mailauth.service.ports 0).number }} diff --git a/charts/mailproxy/v0.1.0/values.yaml b/charts/mailproxy/v0.1.0/values.yaml index e0ade71..f7c79e4 100644 --- a/charts/mailproxy/v0.1.0/values.yaml +++ b/charts/mailproxy/v0.1.0/values.yaml @@ -44,6 +44,7 @@ mailauth: - name: php-fpm number: 9000 protocol: TCP + relayHost: "" resources: {} # limits: # cpu: 100m