blob: 5ad50a4b0b3632ab9e8e09436180874fa173187c [file] [log] [blame]
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-dashboards
labels:
grafana_dashboard: "1"
data:
{{- range .Values.dashboards }}
{{- $dashboard := printf "dashboards/%s" . }}
{{ ($.Files.Glob $dashboard).AsConfig | indent 2 }}
{{- end}}
{{- if .Values.enterpriseDashboard.enabled }}
{{ (tpl ($.Files.Glob "dashboards/enterprise-system.json").AsConfig . ) | indent 2 }}
{{- end}}