1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00

fix(helm): skip deployment replicas validation in non-int value (#8539) (#8543)

* fix(helm): skip deployment replicas validation in non-int value



* fix



---------

Signed-off-by: Erik Godding Boye <egboye@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Erik Godding Boye <egboye@gmail.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
gcp-cherry-pick-bot[bot] 2023-09-27 13:22:54 +02:00 committed by GitHub
parent febc017b52
commit f8d7d622af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View file

@ -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 -}}

View file

@ -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: