1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00

fix: replica count in helm chart (#3954) (#3962)

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

Co-authored-by: shuting <shuting@nirmata.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com>

Co-authored-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
shuting 2022-05-18 12:16:13 +08:00 committed by GitHub
parent 3f47ab6a5d
commit c98d80627c
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 }}