Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly committed Sep 27, 2023
2 parents d477bba + 8d2b68d commit c91aeca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion charts/kyverno/templates/_helpers/_deployment.tpl
Original file line number Diff line number Diff line change
@@ -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 -}}
8 changes: 4 additions & 4 deletions charts/kyverno/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,10 @@ features:
tuf:
# -- Enables the feature
enabled: 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:
Expand Down

0 comments on commit c91aeca

Please sign in to comment.