diff --git a/deployment/charts/backend/templates/deployments/backend-v2.yaml b/deployment/charts/backend/templates/deployments/backend-v2.yaml index 725a40c4..eacfbd10 100644 --- a/deployment/charts/backend/templates/deployments/backend-v2.yaml +++ b/deployment/charts/backend/templates/deployments/backend-v2.yaml @@ -62,6 +62,26 @@ spec: secretKeyRef: name: backend-api-keys key: CAMPUS_API_TOKEN + - name: SMTP_PASSWORD + valueFrom: + secretKeyRef: + name: backend-api-keys + key: SMTP_PASSWORD + - name: SMTP_URL + valueFrom: + secretKeyRef: + name: backend-api-keys + key: SMTP_URL + - name: SMTP_USERNAME + valueFrom: + secretKeyRef: + name: backend-api-keys + key: SMTP_USERNAME + - name: SMTP_PORT + valueFrom: + secretKeyRef: + name: backend-api-keys + key: SMTP_PORT - name: DB_DSN value: "{{ $db.username }}:{{ $db.password }}@tcp(tca-backend-mariadb.{{ $.Values.namespace }}.svc.cluster.local:3306)/{{ $db.database }}?charset=utf8mb4&parseTime=True&loc=Local" - name: APNS_KEY_ID @@ -159,6 +179,10 @@ data: apns_auth_key.p8: {{ $.Values.backend.apns.auth_key }} APNS_KEY_ID: {{ $.Values.backend.apns.key_id | b64enc }} APNS_TEAM_ID: {{ $.Values.backend.apns.team_id | b64enc }} + SMTP_PASSWORD: {{ $.Values.backend.smtp.password | b64enc }} + SMTP_URL: {{ $.Values.backend.smtp.url | b64enc }} + SMTP_USERNAME: {{ $.Values.backend.smtp.username | b64enc }} + SMTP_PORT: {{ $.Values.backend.smtp.port | b64enc }} --- apiVersion: v1 kind: ConfigMap diff --git a/deployment/charts/backend/values.yaml b/deployment/charts/backend/values.yaml index bb0db453..7491ab13 100644 --- a/deployment/charts/backend/values.yaml +++ b/deployment/charts/backend/values.yaml @@ -48,6 +48,11 @@ backend: auth_key: changeme-changeme-changeme key_id: changeme-changeme-changeme team_id: changeme-changeme-changeme + smtp: + password: change-me + url: smtp.gmail.com + username: change-me + port: 465 legacy: config: changeme-changeme-changeme imagepullsecret: changeme-changeme-changeme