Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #55 from typez/external-secret-for-smtp-creds
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ryoo authored Jul 19, 2023
2 parents 57cd26b + b545e2e commit b26867a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 8 additions & 2 deletions charts/allure-testops/templates/allure/uaa-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,17 @@ spec:
- name: SPRING_MAIL_PORT
value: "{{ .Values.smtp.port }}"
- name: SPRING_MAIL_USERNAME
value: {{ .Values.smtp.username }}
valueFrom:
secretKeyRef:
name: {{ $secret_name }}
key: "smtpUsername"
- name: ALLURE_MAIL_FROM
value: {{ .Values.smtp.from }}
- name: SPRING_MAIL_PASSWORD
value: {{ .Values.smtp.password }}
valueFrom:
secretKeyRef:
name: {{ $secret_name }}
key: "smtpPassword"
- name: SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH
value: {{ .Values.smtp.authEnabled | quote }}
- name: SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE
Expand Down
4 changes: 4 additions & 0 deletions charts/allure-testops/templates/infra/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,8 @@ data:
{{- if .Values.licenseApiToken }}
licenceApiToken: {{ .Values.licenseApiToken | b64enc | quote }}
{{- end }}
{{- if .Values.smtp.enabled }}
smtpUsername: {{ .Values.smtp.username | b64enc | quote }}
smtpPassword: {{ .Values.smtp.password | b64enc | quote }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/allure-testops/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ smtp:
port: 465
authEnabled: true
from: [email protected]
# Username and password may be set via ExternalSecret as well
username: sa-testops-smtp
password: SuperSecret
# https://en.wikipedia.org/wiki/Opportunistic_TLS
Expand Down

0 comments on commit b26867a

Please sign in to comment.