diff --git a/helm/extopy/templates/deployment.yaml b/helm/extopy/templates/deployment.yaml index dcc8e8d..a2f0193 100644 --- a/helm/extopy/templates/deployment.yaml +++ b/helm/extopy/templates/deployment.yaml @@ -77,6 +77,24 @@ spec: {{- end }} - name: KTOR_ENV value: {{ .Values.env }} + - name: JWT_SECRET + valueFrom: + secretKeyRef: + {{ if not .Values.existingSecret -}} + name: {{ include "extopy.fullname" . }} + {{- else }} + name: {{ .Values.existingSecret }} + {{- end }} + key: jwt-secret + - name: EMAIL_PASSWORD + valueFrom: + secretKeyRef: + {{ if not .Values.existingSecret -}} + name: {{ include "extopy.fullname" . }} + {{- else }} + name: {{ .Values.existingSecret }} + {{- end }} + key: email-password livenessProbe: {{- toYaml .Values.livenessProbe | nindent 12 }} readinessProbe: diff --git a/helm/extopy/templates/secret.yaml b/helm/extopy/templates/secret.yaml index 7b15176..9c915fa 100644 --- a/helm/extopy/templates/secret.yaml +++ b/helm/extopy/templates/secret.yaml @@ -16,4 +16,6 @@ data: {{ if not .Values.mysql.auth.existingSecret }} mysql-password: {{ .Values.mysql.auth.rootPassword | b64enc | quote }} {{ end }} + jwt-secret: {{ .Values.jwt.secret | b64enc | quote }} + email-password: {{ .Values.email.password | b64enc | quote }} {{ end }} diff --git a/helm/extopy/values.yaml b/helm/extopy/values.yaml index 795a66c..9c83dcd 100644 --- a/helm/extopy/values.yaml +++ b/helm/extopy/values.yaml @@ -141,6 +141,12 @@ existingSecret: '' #env: dev env: production +jwt: + secret: 'secret' + +email: + password: '' + # MySQL configuration mysql: