Skip to content

Commit

Permalink
Trying to alleviate change introduced in helm#15770 by making multiple
Browse files Browse the repository at this point in the history
provisioners optional

Signed-off-by: Borna Skukan <skuxay@gmail.com>
  • Loading branch information
skuxy committed Nov 27, 2019
1 parent 2a9e5c4 commit 8eb98d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stable/grafana/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,12 @@ containers:
{{- if .Values.sidecar.dashboards.enabled }}
- name: sc-dashboard-volume
mountPath: {{ .Values.sidecar.dashboards.folder | quote }}
{{ if .Values.sidecar.dashboards.SCProvider }}
- name: sc-dashboard-provider
mountPath: "/etc/grafana/provisioning/dashboards/sc-dashboardproviders.yaml"
subPath: provider.yaml
{{- end}}
{{- end}}
{{- if .Values.sidecar.datasources.enabled }}
- name: sc-datasources-volume
mountPath: "/etc/grafana/provisioning/datasources"
Expand Down Expand Up @@ -332,7 +334,7 @@ volumes:
{{- if .Values.sidecar.dashboards.enabled }}
- name: sc-dashboard-volume
emptyDir: {}
{{- if .Values.sidecar.dashboards.enabled }}
{{- if .Values.sidecar.dashboards.SCProvider }}
- name: sc-dashboard-provider
configMap:
name: {{ template "grafana.fullname" . }}-config-dashboards
Expand Down
1 change: 1 addition & 0 deletions stable/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ sidecar:
# skipTlsVerify: true
dashboards:
enabled: false
SCProvider: false
# label that the configmaps with dashboards are marked with
label: grafana_dashboard
# folder in the pod that should hold the collected dashboards (unless `defaultFolderName` is set)
Expand Down

0 comments on commit 8eb98d3

Please sign in to comment.