Skip to content

Commit 355ce7c

Browse files
authored
fixed values grafana boolean added if statement to grafana-dashboards.yaml (#2)
added if statement to grafana-dashboards.yaml
1 parent 9aa35b5 commit 355ce7c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

helm/templates/grafana-dashboards.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if .Values.grafana.enabled }}
12
{{ range $path, $_ := .Files.Glob (printf "grafana_dashboards/%s/v%s/**.json" (include "pgwatch2-storage" .) (substr 0 1 .Subcharts.grafana.Chart.AppVersion)) }}
23
---
34
apiVersion: v1
@@ -10,3 +11,5 @@ data:
1011
{{ regexReplaceAll ".*/" ($path | replace "/dashboard.json" ".json") "" }}: |{{ printf "\n" }}
1112
{{- $.Files.Get $path | indent 4}}
1213
{{ end }}
14+
{{ end }}
15+

helm/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ grafana:
132132
sidecar:
133133
dashboards:
134134
enabled: true
135-
enabled: True
135+
enabled: false
136136
service:
137137
type: ClusterIP
138138
noAnonymous: false
@@ -213,3 +213,4 @@ grafana:
213213
image:
214214
repository: grafana/grafana
215215
tag: 8.5.16
216+

0 commit comments

Comments
 (0)