Skip to content

Commit 4aa2fa5

Browse files
committed
Merge branch 'issue-358' into patch-1
2 parents 3161773 + 4a177eb commit 4aa2fa5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

deploy/charts/version-checker/templates/dashboards.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ metadata:
88
labels:
99
{{- include "version-checker.labels" . | nindent 4 }}
1010
{{- if .Values.dashboards.labels }}
11-
{{- .Values.dashboards.labels | toYaml | nindent 4 }}
11+
{{ .Values.dashboards.labels | toYaml | nindent 4}}
1212
{{- end }}
1313
data:
1414
internal.json: |-

deploy/charts/version-checker/tests/dashboards_test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ tests:
2121
- isNotEmpty:
2222
path: .data["internal.json"]
2323

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+
2434
- it: Works w/ GrafanaDashboard
2535
capabilities:
2636
apiVersions:

0 commit comments

Comments
 (0)