blob: 5ad50a4b0b3632ab9e8e09436180874fa173187c [file] [log] [blame]
Andy Bavierab75e9e2020-08-06 12:05:30 -07001# Copyright 2020-present Open Networking Foundation
2# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
3
4apiVersion: v1
5kind: ConfigMap
6metadata:
7 name: {{ .Release.Name }}-dashboards
8 labels:
9 grafana_dashboard: "1"
10data:
Andy Bavierc6568702021-02-04 11:23:15 -070011{{- range .Values.dashboards }}
12{{- $dashboard := printf "dashboards/%s" . }}
13{{ ($.Files.Glob $dashboard).AsConfig | indent 2 }}
14{{- end}}
Andy Bavierfc9be622021-03-08 13:10:13 -070015{{- if .Values.enterpriseDashboard.enabled }}
16{{ (tpl ($.Files.Glob "dashboards/enterprise-system.json").AsConfig . ) | indent 2 }}
17{{- end}}