apiVersion: v1
kind: ConfigMap
metadata:
  labels:
    app: {{ template "grafana.fullname" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    heritage: "{{ .Release.Service }}"
    release: "{{ .Release.Name }}"
  name: {{ template "grafana.server.fullname" . }}-resources
data:
  {{- if .Values.keepOriginalDashboards }}
{{ (.Files.Glob "dashboards/k8s-resources/*.json").AsConfig | indent 2 }}
  {{- end }}
