Skip to content

Commit

Permalink
refactor: secret/certs dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott committed Feb 16, 2021
1 parent 56914c9 commit 06dcd16
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 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.15
version: 0.2.0
kubeVersion: ">= 1.13.0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
2 changes: 1 addition & 1 deletion charts/authelia/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ data:
log_level: {{ default "info" .Values.configMap.log_level }}
default_redirection_url: {{ default (printf "https://www.%s" .Values.domain) .Values.configMap.default_redirection_url }}
{{- if (include "authelia.enabled.certificatesSecret" .) }}
certificates_directory: /usr/app/certificates
certificates_directory: /config/certificates
{{- end }}
server: {{ toYaml .Values.configMap.server | nindent 6 }}
totp:
Expand Down
20 changes: 10 additions & 10 deletions charts/authelia/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,32 +81,32 @@ spec:
{{- end }}
env:
- name: AUTHELIA_JWT_SECRET_FILE
value: /usr/app/secrets/JWT_TOKEN
value: /config/secrets/JWT_TOKEN
- name: AUTHELIA_SESSION_SECRET_FILE
value: /usr/app/secrets/SESSION_ENCRYPTION_KEY
value: /config/secrets/SESSION_ENCRYPTION_KEY
{{- if .Values.configMap.authentication_backend.ldap }}
- name: AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE
value: /usr/app/secrets/LDAP_PASSWORD
value: /config/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
value: /config/secrets/SMTP_PASSWORD
{{- end }}
{{- if .Values.configMap.storage.postgres }}
- name: AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILE
value: /usr/app/secrets/STORAGE_PASSWORD
value: /config/secrets/STORAGE_PASSWORD
{{- end }}
{{- if .Values.configMap.storage.mysql }}
- name: AUTHELIA_STORAGE_MYSQL_PASSWORD_FILE
value: /usr/app/secrets/STORAGE_PASSWORD
value: /config/secrets/STORAGE_PASSWORD
{{- end }}
{{- if and (include "authelia.configured.redisSecret" .) (include "authelia.configured.redis" .) }}
- name: AUTHELIA_SESSION_REDIS_PASSWORD_FILE
value: /usr/app/secrets/REDIS_PASSWORD
value: /config/secrets/REDIS_PASSWORD
{{- end }}
{{- if and (include "authelia.configured.duoSecret" .) (include "authelia.configured.duo" .) }}
- name: AUTHELIA_DUO_API_SECRET_KEY_FILE
value: /usr/app/secrets/DUO_API_KEY
value: /config/secrets/DUO_API_KEY
{{- end }}
{{- with $env := .Values.pod.env }}
{{ toYaml $env | indent 12 }}
Expand Down Expand Up @@ -144,11 +144,11 @@ spec:
name: config
readOnly: false
{{- end }}
- mountPath: /usr/app/secrets
- mountPath: /config/secrets
name: secrets
readOnly: true
{{- if (include "authelia.enabled.certificatesSecret" .) }}
- mountPath: /usr/app/certificates
- mountPath: /config/certificates
name: certificates
readOnly: true
{{- end }}
Expand Down

0 comments on commit 06dcd16

Please sign in to comment.