Skip to content

Commit

Permalink
feat: add email configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
drikqlis committed Apr 29, 2024
1 parent 7fbbdfc commit eb2853d
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/dagonite-empire/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions charts/dagonite-empire/email-string-secret.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
35 changes: 35 additions & 0 deletions charts/dagonite-empire/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 10 additions & 0 deletions charts/dagonite-empire/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ tolerations: []

affinity: {}

# email settings
email:
host: example.com
port: 587
username: [email protected]
password: example_pass
from: [email protected]
name: [email protected]
enable_ssl: true

# postgresql settings
global:
postgresql:
Expand Down

0 comments on commit eb2853d

Please sign in to comment.