blob: 22cf549407b893bc6bbea9c90d65954797325d23 [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 Bavier502d6012020-09-30 11:46:06 -070011{{- if .Values.globalDashboard }}
Andy Bavier5c91c1c2020-09-01 11:47:38 -070012{{- if and .Values.edgeServerDatasourceURL .Values.googleCloudMonitoring }}
Andy Bavierab75e9e2020-08-06 12:05:30 -070013{{ (.Files.Glob "dashboards/global*.json").AsConfig | indent 2 }}
Andy Bavier5c91c1c2020-09-01 11:47:38 -070014{{- end }}
Andy Bavier502d6012020-09-30 11:46:06 -070015{{- end }}
16{{- if .Values.multiSiteDashboard }}
Andy Bavier5c91c1c2020-09-01 11:47:38 -070017{{- if and .Values.edgeServerDatasourceURL .Values.clusterDatasources }}
18{{ (.Files.Glob "dashboards/multi*.json").AsConfig | indent 2 }}
19{{- end }}
Andy Bavier502d6012020-09-30 11:46:06 -070020{{- end }}
21{{- if .Values.enterpriseDashboard }}
22{{- if and .Values.edgeServerDatasourceURL .Values.clusterDatasources }}
23{{- $path := printf "dashboards/%s*.json" .Values.enterpriseDashboard }}
24{{ (.Files.Glob $path).AsConfig | indent 2 }}
25{{- end }}
26{{- end }}