Add local.enabled setting and make it work

Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
This commit is contained in:
Michel Hollands
2023-06-22 13:18:11 +01:00
parent e57e947019
commit 07f719152e
9 changed files with 80 additions and 9 deletions

View File

@@ -1,3 +1,4 @@
{{ if .Values.local.enabled }}
---
apiVersion: v1
kind: ConfigMap
@@ -14,4 +15,5 @@ data:
"loki-writes-resources.json": |
{{ $.Files.Get "src/dashboards/loki-writes-resources.json" | fromJson | toJson }}
"loki-writes.json": |
{{ $.Files.Get "src/dashboards/loki-writes.json" | fromJson | toJson }}
{{ $.Files.Get "src/dashboards/loki-writes.json" | fromJson | toJson }}
{{- end }}