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:
parent
bee9f4df55
commit
4255809e93
3 changed files with 4 additions and 2 deletions
|
@ -30,3 +30,5 @@ annotations:
|
|||
description: Support for artifacthub.io/changes annotation
|
||||
- kind: added
|
||||
description: Allow defining imagePullSecrets
|
||||
- kind: fixed
|
||||
description: Replica count handling
|
||||
|
|
|
@ -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 }}
|
||||
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Reference in a new issue