1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

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

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

Signed-off-by: Erik Godding Boye <egboye@gmail.com>

* fix

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Erik Godding Boye <egboye@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Erik Godding Boye 2023-09-27 12:04:16 +02:00 committed by GitHub
parent 20655f5af4
commit 8d2b68dc46
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: