---
apiVersion: v1
kind: ConfigMap
metadata:
  name: istio-grafana-configuration-dashboards
  namespace: {{ .Release.Namespace }}
  labels:
    app: istio-grafana
    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
    istio: grafana

data:
  {{- $files := .Files }}
  {{ range $path, $bytes := .Files.Glob "dashboards/*.json" }}
  {{ base $path }}: '{{ $files.Get $path }}'
  {{ end }}
