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:
parent
095b22b6af
commit
8295ec9e70
3 changed files with 14 additions and 3 deletions
|
@ -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"
|
||||
|
|
11
charts/kyverno/ci/replicas-values.yaml
Normal file
11
charts/kyverno/ci/replicas-values.yaml
Normal file
|
@ -0,0 +1,11 @@
|
|||
admissionController:
|
||||
replicas: 1
|
||||
|
||||
cleanupController:
|
||||
replicas: 1
|
||||
|
||||
reportsController:
|
||||
replicas: 1
|
||||
|
||||
backgroundController:
|
||||
replicas: 1
|
|
@ -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 -}}
|
||||
|
|
Loading…
Reference in a new issue