1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-13 19:28:55 +00:00

feat(helm): GrafanaDashboard configuration (#10254)

* feat(helm): GrafanaDashboard configuration

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

* feat(helm): documentation

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>

---------

Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
This commit is contained in:
Nicolas Lamirault 2024-05-20 17:38:47 +02:00 committed by GitHub
parent 59ff771ae8
commit 6bd52a28fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View file

@ -683,7 +683,7 @@ The chart values are organised per component.
| grafana.namespace | string | `nil` | Namespace to create the grafana dashboard configmap. If not set, it will be created in the same namespace where the chart is deployed. |
| grafana.annotations | object | `{}` | Grafana dashboard configmap annotations. |
| grafana.labels | object | `{"grafana_dashboard":"1"}` | Grafana dashboard configmap labels |
| grafana.grafanaDashboard | object | `{"create":false,"matchLabels":{"dashboards":"grafana"}}` | create GrafanaDashboard custom resource referencing to the configMap. according to https://grafana-operator.github.io/grafana-operator/docs/examples/dashboard_from_configmap/readme/ |
| grafana.grafanaDashboard | object | `{"allowCrossNamespaceImport":true,"create":false,"folder":"kyverno","matchLabels":{"dashboards":"grafana"}}` | create GrafanaDashboard custom resource referencing to the configMap. according to https://grafana-operator.github.io/grafana-operator/docs/examples/dashboard_from_configmap/readme/ |
### Webhooks cleanup

View file

@ -19,6 +19,8 @@ metadata:
name: {{ tpl $.Values.configMapName $ }}-{{ $name }}
namespace: {{ default (include "kyverno.namespace" $ ) $.Values.namespace }}
spec:
allowCrossNamespaceImport: {{ $.Values.grafanaDashboard.allowCrossNamespaceImport }}
folder: {{ $.Values.grafanaDashboard.folder }}
instanceSelector:
matchLabels:
{{- toYaml $.Values.grafanaDashboard.matchLabels | nindent 6 }}

View file

@ -601,6 +601,8 @@ grafana:
# according to https://grafana-operator.github.io/grafana-operator/docs/examples/dashboard_from_configmap/readme/
grafanaDashboard:
create: false
folder: kyverno
allowCrossNamespaceImport: true
matchLabels:
dashboards: "grafana"