diff --git a/charts/kyverno/templates/_helpers/_deployment.tpl b/charts/kyverno/templates/_helpers/_deployment.tpl index 2b6ed419ef..ca93767613 100644 --- a/charts/kyverno/templates/_helpers/_deployment.tpl +++ b/charts/kyverno/templates/_helpers/_deployment.tpl @@ -1,8 +1,12 @@ {{/* vim: set filetype=mustache: */}} {{- define "kyverno.deployment.replicas" -}} - {{- if eq (int (default 1 .)) 0 -}} + {{- if not (eq . nil) -}} + {{- if not (kindIs "string" .) -}} + {{- if eq (int .) 0 -}} {{- fail "Kyverno does not support running with 0 replicas. Please provide a non-zero integer value." -}} {{- end -}} + {{- end -}} + {{- end -}} {{- . -}} {{- end -}} diff --git a/charts/kyverno/values.yaml b/charts/kyverno/values.yaml index 37f2093e73..f21468cb1d 100644 --- a/charts/kyverno/values.yaml +++ b/charts/kyverno/values.yaml @@ -450,10 +450,10 @@ features: tuf: # -- Enable tuf enable: false - # -- Tuf root - root: - # -- Tuf mirror - mirror: + # -- (string) Tuf root + root: ~ + # -- (string) Tuf mirror + mirror: ~ # Cleanup cronjobs to prevent internal resources from stacking up in the cluster cleanupJobs: