We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b802dd commit 0bec27fCopy full SHA for 0bec27f
deploy/charts/version-checker/templates/dashboards.yaml
@@ -8,7 +8,7 @@ metadata:
8
labels:
9
{{- include "version-checker.labels" . | nindent 4 }}
10
{{- if .Values.dashboards.labels }}
11
- {{- .Values.dashboards.labels | toYaml }}
+ {{ .Values.dashboards.labels | toYaml | nindent 4}}
12
{{- end }}
13
data:
14
internal.json: |-
deploy/charts/version-checker/tests/dashboards_test.yaml
@@ -21,6 +21,19 @@ tests:
21
- isNotEmpty:
22
path: .data["internal.json"]
23
24
+ - it: works w/ custom labels
25
+ set:
26
+ dashboards.labels:
27
+ grafana: "123"
28
+ asserts:
29
+ - isKind:
30
+ of: ConfigMap
31
+ - hasDocuments:
32
+ count: 1
33
+ - equal:
34
+ path: metadata.labels.grafana
35
+ value: "123"
36
+
37
- it: Works w/ GrafanaDashboard
38
capabilities:
39
apiVersions:
0 commit comments