{{- /* Copyright VMware, Inc. SPDX-License-Identifier: APACHE-2.0 */}} {{- if and .Values.dashboardsProvider.enabled (not .Values.dashboardsProvider.configMapName) }} apiVersion: v1 kind: ConfigMap metadata: name: {{ include "common.names.fullname" . }}-provider namespace: {{ .Release.Namespace | quote }} labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }} app.kubernetes.io/component: grafana {{- if .Values.commonAnnotations }} annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} {{- end }} data: default-provider.yaml: |- apiVersion: 1 providers: # an unique provider name - name: 'default-provider' # org id. will default to orgId 1 if not specified orgId: 1 # name of the dashboard folder. Required folder: dashboards # folder UID. will be automatically generated if not specified folderUid: '' # provider type. Required type: file # disable dashboard deletion disableDeletion: false # enable dashboard editing editable: true # how often Grafana will scan for changed dashboards updateIntervalSeconds: 10 options: # path to dashboard files on disk. Required path: /opt/bitnami/grafana/dashboards # enable folders creation for dashboards #foldersFromFilesStructure: true {{- end }}