From eb2853d62bc7dfc6bada73c8829ed60856f01fba Mon Sep 17 00:00:00 2001 From: Drik Qlis Date: Mon, 29 Apr 2024 22:54:47 +0200 Subject: [PATCH] feat: add email configuration --- charts/dagonite-empire/Chart.yaml | 2 +- .../dagonite-empire/email-string-secret.yaml | 13 +++++++ .../dagonite-empire/templates/deployment.yaml | 35 +++++++++++++++++++ charts/dagonite-empire/values.yaml | 10 ++++++ 4 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 charts/dagonite-empire/email-string-secret.yaml diff --git a/charts/dagonite-empire/Chart.yaml b/charts/dagonite-empire/Chart.yaml index fd08e70..2e64aaa 100644 --- a/charts/dagonite-empire/Chart.yaml +++ b/charts/dagonite-empire/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.13 +version: 0.1.14 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/dagonite-empire/email-string-secret.yaml b/charts/dagonite-empire/email-string-secret.yaml new file mode 100644 index 0000000..fef74df --- /dev/null +++ b/charts/dagonite-empire/email-string-secret.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Secret +metadata: + name: email-config-secret +type: Opaque +stringData: + host: "{{ .Values.email.host }}" + port: {{ .Values.email.port }} + username: "{{ .Values.email.username }}" + password: "{{ .Values.email.password }}" + from: "{{ .Values.email.from }}" + name: "{{ .Values.email.name }}" + enable_ssl: {{ .Values.email.enable_ssl }} diff --git a/charts/dagonite-empire/templates/deployment.yaml b/charts/dagonite-empire/templates/deployment.yaml index 598db25..08b99a4 100644 --- a/charts/dagonite-empire/templates/deployment.yaml +++ b/charts/dagonite-empire/templates/deployment.yaml @@ -42,6 +42,41 @@ spec: secretKeyRef: name: connection-string-secret key: connection-string + - name: Email__Host + valueFrom: + secretKeyRef: + name: email-config-secret + key: host + - name: Email__Port + valueFrom: + secretKeyRef: + name: email-config-secret + key: port + - name: Email__Username + valueFrom: + secretKeyRef: + name: email-config-secret + key: username + - name: Email__Password + valueFrom: + secretKeyRef: + name: email-config-secret + key: password + - name: Email__From + valueFrom: + secretKeyRef: + name: email-config-secret + key: from + - name: Email__Name + valueFrom: + secretKeyRef: + name: email-config-secret + key: name + - name: Email__EnableSSL + valueFrom: + secretKeyRef: + name: email-config-secret + key: enable_ssl - name: ASPNETCORE_ENVIRONMENT value: "Development" ports: diff --git a/charts/dagonite-empire/values.yaml b/charts/dagonite-empire/values.yaml index fd9c645..1ec5d9a 100644 --- a/charts/dagonite-empire/values.yaml +++ b/charts/dagonite-empire/values.yaml @@ -112,6 +112,16 @@ tolerations: [] affinity: {} +# email settings +email: + host: example.com + port: 587 + username: username@example.com + password: example_pass + from: username@example.com + name: username@example.com + enable_ssl: true + # postgresql settings global: postgresql: