From a565902e693620bb5497b2af1161ffdf0843471f Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Mon, 29 Jan 2024 21:22:05 +0200 Subject: [PATCH] Updated chart documentation Signed-off-by: Itay Grudev --- charts/cloudnative-pg/templates/grafana-dashboard.yaml | 2 +- charts/cloudnative-pg/values.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/cloudnative-pg/templates/grafana-dashboard.yaml b/charts/cloudnative-pg/templates/grafana-dashboard.yaml index cf34b663f5..302a3fe901 100644 --- a/charts/cloudnative-pg/templates/grafana-dashboard.yaml +++ b/charts/cloudnative-pg/templates/grafana-dashboard.yaml @@ -5,7 +5,7 @@ metadata: name: {{ .Values.monitoring.grafanaDashboard.configMapName }} namespace: {{ default .Release.Namespace .Values.monitoring.grafanaDashboard.namespace }} labels: - {{ .Values.monitoring.grafanaDashboard.sidecarLabel }}: "1" + {{ .Values.monitoring.grafanaDashboard.sidecarLabel }}: {{ .Values.monitoring.grafanaDashboard.sidecarLabelValue | quote }} data: cnp.json: |- {{ .Files.Get "monitoring/grafana-dashboard.json" | indent 6 }} diff --git a/charts/cloudnative-pg/values.yaml b/charts/cloudnative-pg/values.yaml index a84d3dbcc6..3c042ce261 100644 --- a/charts/cloudnative-pg/values.yaml +++ b/charts/cloudnative-pg/values.yaml @@ -143,9 +143,12 @@ monitoring: enabled: false # -- Allows overriding the namespace where the dashboard is installed. namespace: "" - sidecarLabel: "grafana_dashboard" # -- The name of the configmap containing the dashboard. configMapName: "cnpg-grafana-dashboard" + # -- Label that config maps with dashboards should have to be added + sidecarLabel: "grafana_dashboard" + # -- Label value that config maps with dashboards should have to be added + sidecarLabelValue: "" # Default monitoring queries monitoringQueriesConfigMap: