Skip to content

Commit 416ebaa

Browse files
authored
Use values labels for grafana dashboard (#44)
1 parent eefacd1 commit 416ebaa

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

charts/console/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: console
33
appVersion: 1.20.0
4-
version: 1.5.1
4+
version: 1.5.2
55
description: Helm chart to deploy Conduktor Platform on Kubernetes
66
icon: https://www.conduktor.io/svgs/logo/symbol.svg
77
home: https://www.conduktor.io

charts/console/templates/platform/grafana-dashboards.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ kind: GrafanaFolder
99
metadata:
1010
name: {{ $consoleFolderName | quote }}
1111
namespace: {{ include "conduktor.platform.dashboard.namespace" . | quote }}
12+
labels: {{- include "common.labels.standard" . | nindent 4 }}
13+
"conduktor.io/dashboard": "true"
14+
{{- if .Values.commonLabels }}
15+
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
16+
{{- end }}
17+
{{- if .Values.platform.metrics.grafana.labels }}
18+
{{- include "common.tplvalues.render" ( dict "value" .Values.platform.metrics.grafana.labels "context" $ ) | nindent 4 }}
19+
{{- end }}
1220
spec:
1321
instanceSelector:
1422
matchLabels:
@@ -29,6 +37,9 @@ metadata:
2937
{{- if .Values.commonLabels }}
3038
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
3139
{{- end }}
40+
{{- if .Values.platform.metrics.grafana.labels }}
41+
{{- include "common.tplvalues.render" ( dict "value" .Values.platform.metrics.grafana.labels "context" $ ) | nindent 4 }}
42+
{{- end }}
3243
spec:
3344
instanceSelector:
3445
matchLabels:
@@ -58,6 +69,9 @@ metadata:
5869
{{- if .Values.commonLabels }}
5970
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
6071
{{- end }}
72+
{{- if .Values.platform.metrics.grafana.labels }}
73+
{{- include "common.tplvalues.render" ( dict "value" .Values.platform.metrics.grafana.labels "context" $ ) | nindent 4 }}
74+
{{- end }}
6175
spec:
6276
{{- if .Values.platform.metrics.grafana.folder }}
6377
customFolderName: {{ .Values.platform.metrics.grafana.folder | quote }}

0 commit comments

Comments
 (0)