Skip to content

Commit

Permalink
fix: adding missing secrets to helm
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfallet committed Feb 18, 2024
1 parent e4a436c commit 40bf3ea
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions helm/extopy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions helm/extopy/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
6 changes: 6 additions & 0 deletions helm/extopy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ existingSecret: ''
#env: dev
env: production

jwt:
secret: 'secret'

email:
password: ''

# MySQL configuration

mysql:
Expand Down

0 comments on commit 40bf3ea

Please sign in to comment.