Skip to content

Commit

Permalink
feat: allow setting 0 replicas (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchoupinax authored Nov 27, 2024
1 parent 3a66aa7 commit 49aef94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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.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
Expand Down
6 changes: 5 additions & 1 deletion charts/authelia/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}

Expand Down

0 comments on commit 49aef94

Please sign in to comment.