mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
feat: make reports breaker threshold configurable (#10596)
* feat: make reports breaker threshold configurable Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * lower default threshold Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * release notes Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
c51bf9716f
commit
fed71ffaf6
5 changed files with 12 additions and 2 deletions
|
@ -35,6 +35,8 @@ annotations:
|
|||
artifacthub.io/changes: |
|
||||
- kind: added
|
||||
description: Add a key to preserve configmap settings during upgrade
|
||||
- kind: added
|
||||
description: Make admission reports breaker threshold configurable
|
||||
dependencies:
|
||||
- name: grafana
|
||||
version: v0.0.0
|
||||
|
|
|
@ -355,7 +355,8 @@ The chart values are organised per component.
|
|||
|
||||
| Key | Type | Default | Description |
|
||||
|-----|------|---------|-------------|
|
||||
| admissionController.featuresOverride | object | `{}` | Overrides features defined at the root level |
|
||||
| admissionController.featuresOverride | object | `{"admissionReports":{"backPressureThreshold":1000}}` | Overrides features defined at the root level |
|
||||
| admissionController.featuresOverride.admissionReports.backPressureThreshold | int | `1000` | Max number of admission reports allowed in flight until the admission controller stops creating new ones |
|
||||
| admissionController.rbac.create | bool | `true` | Create RBAC resources |
|
||||
| admissionController.rbac.serviceAccount.name | string | `nil` | The ServiceAccount name |
|
||||
| admissionController.rbac.serviceAccount.annotations | object | `{}` | Annotations for the ServiceAccount |
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
{{- $flags := list -}}
|
||||
{{- with .admissionReports -}}
|
||||
{{- $flags = append $flags (print "--admissionReports=" .enabled) -}}
|
||||
{{- with .backPressureThreshold -}}
|
||||
{{- $flags = append $flags (print "--maxAdmissionReports=" .) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- with .aggregateReports -}}
|
||||
{{- $flags = append $flags (print "--aggregateReports=" .enabled) -}}
|
||||
|
|
|
@ -931,7 +931,10 @@ cleanupJobs:
|
|||
admissionController:
|
||||
|
||||
# -- Overrides features defined at the root level
|
||||
featuresOverride: {}
|
||||
featuresOverride:
|
||||
admissionReports:
|
||||
# -- Max number of admission reports allowed in flight until the admission controller stops creating new ones
|
||||
backPressureThreshold: 1000
|
||||
|
||||
rbac:
|
||||
# -- Create RBAC resources
|
||||
|
|
|
@ -44876,6 +44876,7 @@ spec:
|
|||
- --otelConfig=prometheus
|
||||
- --metricsPort=8000
|
||||
- --admissionReports=true
|
||||
- --maxAdmissionReports=1000
|
||||
- --autoUpdateWebhooks=true
|
||||
- --enableConfigMapCaching=true
|
||||
- --enableDeferredLoading=true
|
||||
|
|
Loading…
Reference in a new issue