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

Fix Helm chart to not error when replicas defined (#9066)

Fixes #8941

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
This commit is contained in:
treydock 2023-12-03 16:03:09 -05:00 committed by GitHub
parent 095b22b6af
commit 8295ec9e70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 3 deletions

View file

@ -83,6 +83,8 @@ annotations:
description: Allow overriding the ca-certificate bundle for deployments
- kind: added
description: allow excluding resourceFilters via config.resourceFiltersExclude
- kind: fixed
description: Fix Helm chart to not error when replicas defined
dependencies:
- name: grafana
version: "0.0.0"

View file

@ -0,0 +1,11 @@
admissionController:
replicas: 1
cleanupController:
replicas: 1
reportsController:
replicas: 1
backgroundController:
replicas: 1

View file

@ -1,12 +1,10 @@
{{/* vim: set filetype=mustache: */}}
{{- define "kyverno.deployment.replicas" -}}
{{- if not (eq . nil) -}}
{{- if not (kindIs "string" .) -}}
{{- if and (not (kindIs "invalid" .)) (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 -}}