mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-08 18:15:48 +00:00
fix: prevent installing chart with 2 replicas (#3647)
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
parent
3ce643032f
commit
571e4a36ad
1 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
{{- if hasKey .Values "mode" }}
|
||||
{{ fail "mode is not supported anymore, please remove it from your release and use replicaCount instead." }}
|
||||
{{- end }}
|
||||
|
||||
{{- if .Values.replicaCount }}
|
||||
{{- if eq .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