1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-01-20 18:52:16 +00:00

fix: replica count in helm chart (#3954)

Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>

Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2022-05-17 19:59:53 +02:00 committed by GitHub
parent bee9f4df55
commit 4255809e93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -30,3 +30,5 @@ annotations:
description: Support for artifacthub.io/changes annotation
- kind: added
description: Allow defining imagePullSecrets
- kind: fixed
description: Replica count handling

View file

@ -5,7 +5,7 @@ Thank you for installing {{ .Chart.Name }}! Your release is named {{ .Release.Na
{{- if not .Values.replicaCount }}
⚠️ WARNING: Setting replicas count below 3 means Kyverno is not running in high availability mode.
{{- else if lt .Values.replicaCount 3 }}
{{- else if lt (int .Values.replicaCount) 3 }}
⚠️ WARNING: Setting replicas count below 3 means Kyverno is not running in high availability mode.
{{- end }}

View file

@ -3,7 +3,7 @@
{{- end }}
{{- if .Values.replicaCount }}
{{- if eq .Values.replicaCount 2 }}
{{- if eq (int .Values.replicaCount) 2 }}
{{ fail "Kyverno does not support running with 2 replicas. For a highly-available deployment, select 3 replicas or for standalone select 1 replica." }}
{{- end }}
{{- end }}