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:
parent
20655f5af4
commit
8d2b68dc46
2 changed files with 9 additions and 5 deletions
|
@ -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 -}}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue