From f8b06978b987648e46ce7fe2ff426fc216cf4f08 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Fri, 20 May 2022 11:26:15 +1000 Subject: [PATCH] feat(authelia): allow excluding secret mount (#165) --- charts/authelia/Chart.yaml | 2 +- charts/authelia/templates/deployment.yaml | 4 ++-- charts/authelia/values.local.yaml | 2 ++ charts/authelia/values.yaml | 2 ++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/charts/authelia/Chart.yaml b/charts/authelia/Chart.yaml index 50d7283..4de620a 100644 --- a/charts/authelia/Chart.yaml +++ b/charts/authelia/Chart.yaml @@ -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 diff --git a/charts/authelia/templates/deployment.yaml b/charts/authelia/templates/deployment.yaml index 7ee6f39..cc27d83 100644 --- a/charts/authelia/templates/deployment.yaml +++ b/charts/authelia/templates/deployment.yaml @@ -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 @@ -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 }} diff --git a/charts/authelia/values.local.yaml b/charts/authelia/values.local.yaml index 2da92f7..293f6ca 100644 --- a/charts/authelia/values.local.yaml +++ b/charts/authelia/values.local.yaml @@ -1206,6 +1206,8 @@ secret: mountPath: /secrets + excludeVolumeAndMounts: false + ## Secrets. jwt: key: JWT_TOKEN diff --git a/charts/authelia/values.yaml b/charts/authelia/values.yaml index 89fbc5e..a98c1cb 100644 --- a/charts/authelia/values.yaml +++ b/charts/authelia/values.yaml @@ -1212,6 +1212,8 @@ secret: mountPath: /secrets + excludeVolumeAndMounts: false + ## Secrets. jwt: key: JWT_TOKEN