diff options
author | 2019-03-22 16:22:35 -0700 | |
---|---|---|
committer | 2019-03-28 09:48:58 -0700 | |
commit | e638d92d1f48e0747fae96cd0606a52525ce9bf8 (patch) | |
tree | 6e0bd14949d518b1a3fb6c7c285313477c3d455e /vnfs/DAaaS/collection/charts/prometheus-operator/templates/grafana/configmap-dashboards.yaml | |
parent | c527da2405524418adb9eb27ce41391290ba41bc (diff) |
Move Prometheus-operator to operator package
Change-Id: I9f3b1a67c62303e40c46fa9d28abe0339e248ed6
Issue-ID: ONAPARC-444
Signed-off-by: Srivahni <srivahni.chivukula@intel.com>
Diffstat (limited to 'vnfs/DAaaS/collection/charts/prometheus-operator/templates/grafana/configmap-dashboards.yaml')
-rw-r--r-- | vnfs/DAaaS/collection/charts/prometheus-operator/templates/grafana/configmap-dashboards.yaml | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/vnfs/DAaaS/collection/charts/prometheus-operator/templates/grafana/configmap-dashboards.yaml b/vnfs/DAaaS/collection/charts/prometheus-operator/templates/grafana/configmap-dashboards.yaml deleted file mode 100644 index 0289154b..00000000 --- a/vnfs/DAaaS/collection/charts/prometheus-operator/templates/grafana/configmap-dashboards.yaml +++ /dev/null @@ -1,23 +0,0 @@ -{{- if and .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled }} -{{- $files := .Files.Glob "dashboards/*.json" }} -{{- if $files }} -apiVersion: v1 -kind: ConfigMapList -items: -{{- range $path, $fileContents := $files }} -{{- $dashboardName := regexReplaceAll "(^.*/)(.*)\\.json$" $path "${2}" }} -- apiVersion: v1 - kind: ConfigMap - metadata: - name: {{ printf "%s-%s" (include "prometheus-operator.fullname" $) $dashboardName | trunc 63 | trimSuffix "-" }} - labels: - {{- if $.Values.grafana.sidecar.dashboards.label }} - {{ $.Values.grafana.sidecar.dashboards.label }}: "1" - {{- end }} - app: {{ template "prometheus-operator.name" $ }}-grafana -{{ include "prometheus-operator.labels" $ | indent 6 }} - data: - {{ $dashboardName }}.json: {{ $.Files.Get $path | toJson }} -{{- end }} -{{- end }} -{{- end }} |