rancher-partner-charts/charts/kubecost/cost-analyzer/2.2.0/templates/grafana-configmap-dashboard...

29 lines
728 B
YAML
Raw Normal View History

{{- if (eq (include "cost-analyzer.grafanaEnabled" .) "true") }}
{{- if .Values.grafana.sidecar.dashboards.enabled }}
2021-06-24 01:55:05 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: {{ template "grafana.name" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.grafana.annotations }}
2021-06-24 01:55:05 +00:00
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
name: {{ template "grafana.fullname" . }}-config-dashboards
namespace: {{ .Release.Namespace }}
2021-06-24 01:55:05 +00:00
data:
provider.yaml: |-
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: ''
type: file
disableDeletion: false
options:
path: {{ .Values.grafana.sidecar.dashboards.folder }}
2021-06-24 01:55:05 +00:00
{{- end}}
{{ end }}