From b37425d3c709068daac63e7440467e4fdb2fb2ac Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Wed, 15 Apr 2026 13:24:45 +0800 Subject: [PATCH] fix: add SMTP env vars to email-worker deployment --- deploy/templates/email-worker-deployment.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/deploy/templates/email-worker-deployment.yaml b/deploy/templates/email-worker-deployment.yaml index aae2b90..b083db8 100644 --- a/deploy/templates/email-worker-deployment.yaml +++ b/deploy/templates/email-worker-deployment.yaml @@ -43,6 +43,42 @@ spec: name: {{ include "gitdata.fullname" . }}-config key: APP_REDIS_URL optional: true + - name: APP_SMTP_HOST + valueFrom: + configMapKeyRef: + name: {{ include "gitdata.fullname" . }}-config + key: APP_SMTP_HOST + optional: true + - name: APP_SMTP_PORT + valueFrom: + configMapKeyRef: + name: {{ include "gitdata.fullname" . }}-config + key: APP_SMTP_PORT + optional: true + - name: APP_SMTP_USERNAME + valueFrom: + configMapKeyRef: + name: {{ include "gitdata.fullname" . }}-config + key: APP_SMTP_USERNAME + optional: true + - name: APP_SMTP_PASSWORD + valueFrom: + configMapKeyRef: + name: {{ include "gitdata.fullname" . }}-config + key: APP_SMTP_PASSWORD + optional: true + - name: APP_SMTP_FROM + valueFrom: + configMapKeyRef: + name: {{ include "gitdata.fullname" . }}-config + key: APP_SMTP_FROM + optional: true + - name: APP_SMTP_TLS + valueFrom: + configMapKeyRef: + name: {{ include "gitdata.fullname" . }}-config + key: APP_SMTP_TLS + optional: true {{- range .Values.emailWorker.env }} - name: {{ .name }} value: {{ .value | quote }}