Skip to content

Commit

Permalink
fix: smtp/redis password secret mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott committed Feb 16, 2021
1 parent 2f61dd1 commit 2c98d1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.1.12
version: 0.1.13
kubeVersion: ">= 1.13.0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
8 changes: 6 additions & 2 deletions charts/authelia/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ spec:
- name: AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE
value: /usr/app/secrets/LDAP_PASSWORD
{{- end }}
{{- if or (include "authelia.configured.smtp" .) (include "authelia.configured.smtpSecret" .) }}
- name: AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE
value: /usr/app/secrets/SMTP_PASSWORD
{{- end }}
{{- if .Values.configMap.storage.postgres }}
- name: AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILE
value: /usr/app/secrets/STORAGE_PASSWORD
Expand Down Expand Up @@ -188,11 +192,11 @@ spec:
- key: {{ default "LDAP_PASSWORD" .Values.secret.ldap.key }}
path: LDAP_PASSWORD
{{- end }}
{{- if .Values.secret.smtp.enabled }}
{{- if or (include "authelia.configured.smtp" .) (include "authelia.configured.smtpSecret" .) }}
- key: {{ default "SMTP_PASSWORD" .Values.secret.smtp.key }}
path: SMTP_PASSWORD
{{- end }}
{{- if and (.Values.configMap.session.redis) (.Values.secret.redis.enabled) }}
{{- if and (include "authelia.configured.redisSecret" .) (include "authelia.configured.redis" .) }}
- key: {{ default "REDIS_PASSWORD" .Values.secret.redis.key }}
path: REDIS_PASSWORD
{{- end }}
Expand Down

0 comments on commit 2c98d1c

Please sign in to comment.