Skip to content

Commit

Permalink
feat(authelia): allow excluding secret mount (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-elliott authored May 20, 2022
1 parent 59e231c commit f8b0697
Show file tree
Hide file tree
Showing 4 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.8.30
version: 0.8.31
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
4 changes: 2 additions & 2 deletions charts/authelia/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ spec:
readOnly: true
subPath: configuration.acl.yaml
{{- end }}
{{- if not (include "authelia.enabled.injector" .) }}
{{- if and (not (include "authelia.enabled.injector" .)) (not .Values.secret.excludeVolumeAndMounts) }}
- mountPath: {{ include "authelia.secret.mountPath" . }}
name: secrets
readOnly: true
Expand Down Expand Up @@ -230,7 +230,7 @@ spec:
- key: {{ default "configuration.acl.yaml" .Values.configMap.access_control.secret.key }}
path: configuration.acl.yaml
{{- end }}
{{- if not (include "authelia.enabled.injector" .) }}
{{- if and (not (include "authelia.enabled.injector" .)) (not .Values.secret.excludeVolumeAndMounts) }}
- name: secrets
secret:
secretName: {{ default (include "authelia.name" .) .Values.secret.existingSecret }}
Expand Down
2 changes: 2 additions & 0 deletions charts/authelia/values.local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1206,6 +1206,8 @@ secret:

mountPath: /secrets

excludeVolumeAndMounts: false

## Secrets.
jwt:
key: JWT_TOKEN
Expand Down
2 changes: 2 additions & 0 deletions charts/authelia/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,8 @@ secret:

mountPath: /secrets

excludeVolumeAndMounts: false

## Secrets.
jwt:
key: JWT_TOKEN
Expand Down

0 comments on commit f8b0697

Please sign in to comment.