From b5efbd28f92f736b8bb6d7e46ad304a2691e3eb0 Mon Sep 17 00:00:00 2001 From: Jacek Wysocki Date: Fri, 10 Nov 2023 08:03:32 +0100 Subject: [PATCH] feat: allow to configure from email --- charts/testkube-cloud-api/templates/deployment.yaml | 4 ++++ charts/testkube-cloud-api/values.yaml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/charts/testkube-cloud-api/templates/deployment.yaml b/charts/testkube-cloud-api/templates/deployment.yaml index fa6d227bf..02e113259 100644 --- a/charts/testkube-cloud-api/templates/deployment.yaml +++ b/charts/testkube-cloud-api/templates/deployment.yaml @@ -86,6 +86,10 @@ spec: value: {{ .Values.api.smtp.password }} {{- end }} {{- end }} + - name: FROM_EMAIL + value: "{{ .Values.api.email.fromEmail }}" + - name: FROM_NAME + value: "{{ .Values.api.email.fromName }}" - name: ROOT_DOMAIN value: "{{ .Values.global.domain }}" - name: METRICS_LISTEN_ADDR diff --git a/charts/testkube-cloud-api/values.yaml b/charts/testkube-cloud-api/values.yaml index f1610205a..bedee47d8 100644 --- a/charts/testkube-cloud-api/values.yaml +++ b/charts/testkube-cloud-api/values.yaml @@ -90,6 +90,9 @@ api: useHelmHooks: true # -- Configure which invitation mode to use (email|auto-accept): email uses SMTP protocol to send email invites and auto-accept immediately adds them inviteMode: email + email: + fromEmail: "noreply@kubeshop.io" + fromName: "Testkube Cloud" smtp: # -- SMTP host host: smtp.sendgrid.net