From 94acdb26f8c200aec55254cc87252d6d9e81a870 Mon Sep 17 00:00:00 2001 From: James Elliott Date: Fri, 19 Apr 2024 11:43:27 +1000 Subject: [PATCH] fix: stateful true when watch enabled This ensures if watch is true that the stateful value is false when using the file backend. --- charts/authelia/Chart.yaml | 2 +- charts/authelia/templates/_helpers.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/authelia/Chart.yaml b/charts/authelia/Chart.yaml index 1bdfb32..420f520 100644 --- a/charts/authelia/Chart.yaml +++ b/charts/authelia/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: authelia -version: 0.9.0-beta2 +version: 0.9.0-beta3 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/_helpers.tpl b/charts/authelia/templates/_helpers.tpl index 02cd68a..2bbac73 100644 --- a/charts/authelia/templates/_helpers.tpl +++ b/charts/authelia/templates/_helpers.tpl @@ -61,7 +61,7 @@ Returns true if pod is stateful. {{- true -}} {{- else if and (not (and (.Values.configMap.storage.mysql) (.Values.configMap.storage.mysql.enabled))) (not (and (.Values.configMap.storage.postgres) (.Values.configMap.storage.postgres.enabled))) -}} {{- true -}} - {{- else if not (and (.Values.configMap.authentication_backend) (.Values.configMap.authentication_backend.ldap.enabled)) -}} + {{- else if or (not .Values.configMap.authentication_backend) (not .Values.configMap.authentication_backend.ldap.enabled) (and .Values.configMap.authentication_backend.file.enabled (not .Values.configMap.authentication_backend.file.watch)) -}} {{- true -}} {{- end -}} {{- end -}}