Skip to content

Commit

Permalink
Merge pull request #659 from tbalzer/enable-multiple-files
Browse files Browse the repository at this point in the history
[grafana] Enable multiple files in values.yaml for datasources / notifiers / dashboardProviders
  • Loading branch information
zanhsieh committed Sep 4, 2021
2 parents bf7d659 + ea2d28e commit 0f1776a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/grafana/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: grafana
version: 6.16.3
version: 6.16.4
appVersion: 8.1.2
kubeVersion: '^1.8.0-0'
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
18 changes: 12 additions & 6 deletions charts/grafana/templates/_pod.tpl
Expand Up @@ -260,19 +260,25 @@ containers:
{{- end }}
{{- end }}
{{- if .Values.datasources }}
{{- range (keys .Values.datasources | sortAlpha) }}
- name: config
mountPath: "/etc/grafana/provisioning/datasources/datasources.yaml"
subPath: datasources.yaml
mountPath: "/etc/grafana/provisioning/datasources/{{ . }}"
subPath: {{ . | quote }}
{{- end }}
{{- end }}
{{- if .Values.notifiers }}
{{- range (keys .Values.notifiers | sortAlpha) }}
- name: config
mountPath: "/etc/grafana/provisioning/notifiers/notifiers.yaml"
subPath: notifiers.yaml
mountPath: "/etc/grafana/provisioning/notifiers/{{ . }}"
subPath: {{ . | quote }}
{{- end }}
{{- end }}
{{- if .Values.dashboardProviders }}
{{- range (keys .Values.dashboardProviders | sortAlpha) }}
- name: config
mountPath: "/etc/grafana/provisioning/dashboards/dashboardproviders.yaml"
subPath: dashboardproviders.yaml
mountPath: "/etc/grafana/provisioning/dashboards/{{ . }}"
subPath: {{ . | quote }}
{{- end }}
{{- end }}
{{- if .Values.sidecar.dashboards.enabled }}
- name: sc-dashboard-volume
Expand Down

0 comments on commit 0f1776a

Please sign in to comment.