diff --git a/charts/authelia/Chart.yaml b/charts/authelia/Chart.yaml index 45c82ef..968c617 100644 --- a/charts/authelia/Chart.yaml +++ b/charts/authelia/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: authelia -version: 0.9.12 +version: 0.9.13 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 6e423f9..aff927b 100644 --- a/charts/authelia/templates/_helpers.tpl +++ b/charts/authelia/templates/_helpers.tpl @@ -282,7 +282,11 @@ Returns the number of replicas {{- if (include "authelia.stateful" .) }} {{- 1 -}} {{- else -}} - {{- default 1 .Values.pod.replicas -}} + {{- if (eq 0 (int .Values.pod.replicas))}} + {{- 0 -}} + {{- else }} + {{- .Values.pod.replicas | default 1 -}} + {{- end }} {{- end -}} {{- end -}}