13 lines
552 B
YAML
13 lines
552 B
YAML
{{- 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 (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 }}
|
|
|
|
{{- if eq (include "kyverno.namespace" .) "kube-system" }}
|
|
{{ fail "Kyverno cannot be installed in namespace kube-system." }}
|
|
{{- end }}
|