Skip to content

Commit a127b28

Browse files
svcAPLBotmerll
andauthored
chore(chart-deps): update policy-reporter to version 3.5.0 (#2520)
Co-authored-by: merll <merll@users.noreply.github.com>
1 parent 725c242 commit a127b28

File tree

8 files changed

+44
-12
lines changed

8 files changed

+44
-12
lines changed

apps.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ appsInfo:
353353
integration: When enabled, Velero can be used to automatically create backups of APL platform services. Based on the selected provider, APL installs required plug-ins. APL also installs the Restic integration for Velero to back up and restore almost any type of Kubernetes volume.
354354
policy-reporter:
355355
title: policy-reporter
356-
appVersion: 3.4.2
356+
appVersion: 3.5.0
357357
repo: https://github.com/kyverno/policy-reporter
358358
maintainers: Frank Jogeleit
359359
license: Apache 2.0

chart/chart-index/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ dependencies:
100100
version: 0.98.0
101101
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
102102
- name: policy-reporter
103-
version: 3.4.2
103+
version: 3.5.0
104104
repository: https://kyverno.github.io/policy-reporter
105105
- name: prometheus-blackbox-exporter
106106
version: 11.4.1

charts/policy-reporter/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: 3.4.2
2+
appVersion: 3.5.0
33
description: 'Policy Reporter watches for PolicyReport Resources. It creates Prometheus
44
Metrics and can send rule validation events to different targets like Loki, Elasticsearch,
55
Slack or Discord '
@@ -12,4 +12,4 @@ name: policy-reporter
1212
sources:
1313
- https://github.com/kyverno/policy-reporter
1414
type: application
15-
version: 3.4.2
15+
version: 3.5.0

charts/policy-reporter/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Policy Reporter watches for PolicyReport Resources.
44
It creates Prometheus Metrics and can send rule validation events to different targets like Loki, Elasticsearch, Slack or Discord
55

6-
![Version: 3.4.2](https://img.shields.io/badge/Version-3.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.4.2](https://img.shields.io/badge/AppVersion-3.4.2-informational?style=flat-square)
6+
![Version: 3.5.0](https://img.shields.io/badge/Version-3.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.5.0](https://img.shields.io/badge/AppVersion-3.5.0-informational?style=flat-square)
77

88
## Documentation
99

@@ -360,6 +360,12 @@ Open `http://localhost:8082/` in your browser.
360360
| database.host | string | `""` | Host Address |
361361
| database.enableSSL | bool | `false` | Enables SSL |
362362
| database.dsn | string | `""` | Instead of configure the individual values you can also provide an DSN string example postgres: postgres://postgres:password@localhost:5432/postgres?sslmode=disable example mysql: root:password@tcp(localhost:3306)/test?tls=false |
363+
| database.maxOpenConnections | int | `25` | Maximum number of open connections, supported for mysql and postgres |
364+
| database.maxIdleConnections | int | `25` | Maximum number of idle connections, supported for mysql and postgres |
365+
| database.connectionMaxLifetime | int | `0` | Maximum amount of time in minutes a connection may be reused, supported for mysql and postgres |
366+
| database.connectionMaxIdleTime | int | `0` | Maximum amount of time in minutes a connection may be idle, supported for mysql and postgres |
367+
| database.timeout | int | `10` | Timeout for database operations in seconds, supported for mysql and postgres |
368+
| database.metrics | bool | `false` | Enables database related metrics, connection status and query histogram |
363369
| database.secretRef | string | `""` | Read configuration from an existing Secret supported fields: username, password, host, dsn, database |
364370
| database.mountedSecret | string | `""` | |
365371
| periodicSync.enabled | bool | `false` | |
@@ -381,7 +387,7 @@ Open `http://localhost:8082/` in your browser.
381387
| ui.image.registry | string | `"ghcr.io"` | Image registry |
382388
| ui.image.repository | string | `"kyverno/policy-reporter-ui"` | Image repository |
383389
| ui.image.pullPolicy | string | `"IfNotPresent"` | Image PullPolicy |
384-
| ui.image.tag | string | `"2.4.2"` | Image tag |
390+
| ui.image.tag | string | `"2.4.3"` | Image tag |
385391
| ui.replicaCount | int | `1` | Deployment replica count |
386392
| ui.priorityClassName | string | `""` | Deployment priorityClassName |
387393
| ui.logging.api | bool | `false` | Enables external api request logging |
@@ -462,14 +468,15 @@ Open `http://localhost:8082/` in your browser.
462468
| ui.nodeSelector | object | `{}` | Node labels for pod assignment |
463469
| ui.tolerations | list | `[]` | List of node taints to tolerate |
464470
| ui.affinity | object | `{}` | Affinity constraints. |
471+
| ui.topologySpreadConstraints | object | `{}` | Pod Topology Spread Constraints for the policy-reporter-ui. |
465472
| ui.extraVolumes.volumeMounts | list | `[]` | Deployment volumeMounts |
466473
| ui.extraVolumes.volumes | list | `[]` | Deployment values |
467474
| ui.extraConfig | object | `{}` | Extra configuration options appended to UI settings |
468475
| plugin.kyverno.enabled | bool | `false` | Enable Kyverno Plugin |
469476
| plugin.kyverno.image.registry | string | `"ghcr.io"` | Image registry |
470477
| plugin.kyverno.image.repository | string | `"kyverno/policy-reporter/kyverno-plugin"` | Image repository |
471478
| plugin.kyverno.image.pullPolicy | string | `"IfNotPresent"` | Image PullPolicy |
472-
| plugin.kyverno.image.tag | string | `"0.5.0"` | Image tag |
479+
| plugin.kyverno.image.tag | string | `"0.5.1"` | Image tag |
473480
| plugin.kyverno.replicaCount | int | `1` | Deployment replica count |
474481
| plugin.kyverno.priorityClassName | string | `""` | Deployment priorityClassName |
475482
| plugin.kyverno.logging.api | bool | `false` | Enables external API request logging |
@@ -535,7 +542,7 @@ Open `http://localhost:8082/` in your browser.
535542
| plugin.trivy.image.registry | string | `"ghcr.io"` | Image registry |
536543
| plugin.trivy.image.repository | string | `"kyverno/policy-reporter/trivy-plugin"` | Image repository |
537544
| plugin.trivy.image.pullPolicy | string | `"IfNotPresent"` | Image PullPolicy |
538-
| plugin.trivy.image.tag | string | `"0.4.9"` | Image tag Defaults to `Chart.AppVersion` if omitted |
545+
| plugin.trivy.image.tag | string | `"0.4.10"` | Image tag Defaults to `Chart.AppVersion` if omitted |
539546
| plugin.trivy.cli.image.registry | string | `"ghcr.io"` | Image registry |
540547
| plugin.trivy.cli.image.repository | string | `"aquasecurity/trivy"` | Image repository |
541548
| plugin.trivy.cli.image.pullPolicy | string | `"IfNotPresent"` | Image PullPolicy |

charts/policy-reporter/configs/core.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ database:
195195
host: {{ .Values.database.host }}
196196
enableSSL: {{ .Values.database.enableSSL }}
197197
dsn: {{ .Values.database.dsn }}
198+
maxOpenConnections: {{ .Values.database.maxOpenConnections }}
199+
maxIdleConnections: {{ .Values.database.maxIdleConnections }}
200+
connectionMaxIdleTime: {{ .Values.database.connectionMaxIdleTime }}
201+
connectionMaxLifetime: {{ .Values.database.connectionMaxLifetime }}
202+
timeout: {{ .Values.database.timeout }}
203+
metrics: {{ .Values.database.metrics }}
198204
secretRef: {{ .Values.database.secretRef }}
199205
mountedSecret: {{ .Values.database.mountedSecret }}
200206

charts/policy-reporter/templates/monitoring/clusterpolicy-details.dashboard.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ data:
720720
"pluginVersion": "7.1.5",
721721
"targets": [
722722
{
723-
"expr": "max(sum(cluster_policy_report_result{policy=~\"$policy\", category=~\"$category\", severity=~\"$severity\", source=~\"$source\", kind=~\"$kind\", status=\"warn\"{{ range $filters }}, {{.}}=~\"${{.}}\"{{ end }} }) by (pod, policy,rule,kind,name,status,severity,category,source{{ range $filters }},{{.}}{{ end }})) by (policy,rule,kind,name,status,severity,category,source{{ range $filters }},{{.}}{{ end }})",
723+
"expr": "max(sum(cluster_policy_report_result{policy=~\"$policy\", category=~\"$category\", severity=~\"$severity\", source=~\"$source\", kind=~\"$kind\", status=\"error\"{{ range $filters }}, {{.}}=~\"${{.}}\"{{ end }} }) by (pod, policy,rule,kind,name,status,severity,category,source{{ range $filters }},{{.}}{{ end }})) by (policy,rule,kind,name,status,severity,category,source{{ range $filters }},{{.}}{{ end }})",
724724
"format": "table",
725725
"instant": true,
726726
"interval": "",

charts/policy-reporter/templates/ui/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ spec:
111111
affinity:
112112
{{- toYaml . | nindent 8 }}
113113
{{- end }}
114+
{{- with .Values.ui.topologySpreadConstraints }}
115+
topologySpreadConstraints:
116+
{{- toYaml . | nindent 8 }}
117+
{{- end }}
114118
{{- with .Values.ui.tolerations }}
115119
tolerations:
116120
{{- toYaml . | nindent 8 }}

charts/policy-reporter/values.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,18 @@ database:
871871
# example postgres: postgres://postgres:password@localhost:5432/postgres?sslmode=disable
872872
# example mysql: root:password@tcp(localhost:3306)/test?tls=false
873873
dsn: ""
874+
# -- Maximum number of open connections, supported for mysql and postgres
875+
maxOpenConnections: 25
876+
# -- Maximum number of idle connections, supported for mysql and postgres
877+
maxIdleConnections: 25
878+
# -- Maximum amount of time in minutes a connection may be reused, supported for mysql and postgres
879+
connectionMaxLifetime: 0
880+
# -- Maximum amount of time in minutes a connection may be idle, supported for mysql and postgres
881+
connectionMaxIdleTime: 0
882+
# -- Timeout for database operations in seconds, supported for mysql and postgres
883+
timeout: 10
884+
# -- Enables database related metrics, connection status and query histogram
885+
metrics: false
874886
# -- Read configuration from an existing Secret
875887
# supported fields: username, password, host, dsn, database
876888
secretRef: ""
@@ -949,7 +961,7 @@ ui:
949961
# -- (string) Image PullPolicy
950962
pullPolicy: IfNotPresent
951963
# -- (string) Image tag
952-
tag: "2.4.2"
964+
tag: "2.4.3"
953965

954966
# -- Deployment replica count
955967
replicaCount: 1
@@ -1267,6 +1279,9 @@ ui:
12671279
# -- Affinity constraints.
12681280
affinity: {}
12691281

1282+
# -- Pod Topology Spread Constraints for the policy-reporter-ui.
1283+
topologySpreadConstraints: {}
1284+
12701285
extraVolumes:
12711286
# -- Deployment volumeMounts
12721287
volumeMounts: []
@@ -1289,7 +1304,7 @@ plugin:
12891304
# -- (string) Image PullPolicy
12901305
pullPolicy: IfNotPresent
12911306
# -- (string) Image tag
1292-
tag: "0.5.0"
1307+
tag: "0.5.1"
12931308

12941309
# -- Deployment replica count
12951310
replicaCount: 1
@@ -1503,7 +1518,7 @@ plugin:
15031518
pullPolicy: IfNotPresent
15041519
# -- (string) Image tag
15051520
# Defaults to `Chart.AppVersion` if omitted
1506-
tag: "0.4.9"
1521+
tag: "0.4.10"
15071522

15081523
cli:
15091524
image:

0 commit comments

Comments
 (0)