Skip to content

Commit

Permalink
Merge pull request #8911 from sp3nx0r/smtp-existing-secret
Browse files Browse the repository at this point in the history
[grid helm] add existingSecret check for SMTP password
  • Loading branch information
madhavajay authored Jun 24, 2024
2 parents b8f105c + 392aa43 commit 9714944
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ spec:
- name: SMTP_USERNAME
value: {{ .Values.node.smtp.username | quote }}
- name: SMTP_PASSWORD
{{- if .Values.node.smtp.existingSecret }}
valueFrom:
secretKeyRef:
name: {{ .Values.node.smtp.existingSecret }}
key: smtpPassword
{{ else }}
value: {{ .Values.node.smtp.password | quote }}
{{ end }}
- name: EMAIL_SENDER
value: {{ .Values.node.smtp.from | quote}}
# SeaweedFS
Expand Down
4 changes: 3 additions & 1 deletion packages/grid/helm/syft/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ node:

# SMTP Settings
smtp:
# Existing secret for SMTP with key 'smtpPassword'
existingSecret: null
host: smtp.sendgrid.net
port: 587
from: [email protected]
Expand All @@ -195,7 +197,7 @@ node:
resourcesPreset: xlarge
resources: null

# Seaweed secret name. Override this if you want to use a self-managed secret.
# Backend secret name. Override this if you want to use a self-managed secret.
# Secret must contain the following keys:
# - defaultRootPassword
secretKeyName: backend-secret
Expand Down

0 comments on commit 9714944

Please sign in to comment.