[stable/grafana] Fix conflict when using multiple grafana providers (#19177)

* Trying to alleviate change introduced in #15770 by making multiple
provisioners optional. Also bumped version and added entry to README.

Signed-off-by: Borna Skukan <skuxay@gmail.com>

* Further version bump

Signed-off-by: Borna Skukan <skuxay@gmail.com>

* Making default behaviour same as before

Signed-off-by: Borna Skukan <skuxay@gmail.com>
This commit is contained in:
Borna Skukan
2019-12-05 17:04:51 -08:00
committed by Kubernetes Prow Robot
parent 775a3d7140
commit 2d582dc9a6
4 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: grafana
version: 4.1.0
version: 4.1.1
appVersion: 6.5.0
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
+1
View File
@@ -113,6 +113,7 @@ This version requires Helm >= 2.12.0.
| `sidecar.imagePullPolicy` | Sidecar image pull policy | `IfNotPresent` |
| `sidecar.resources` | Sidecar resources | `{}` |
| `sidecar.dashboards.enabled` | Enables the cluster wide search for dashboards and adds/updates/deletes them in grafana | `false` |
| `sidecar.dashboards.SCProvider` | Enables creation of sidecar provider | `true`
| `sidecar.dashboards.provider.name` | Unique name of the grafana provider | `sidecarProvider` |
| `sidecar.dashboards.provider.orgid` | Id of the organisation, to which the dashboards should be added | `1` |
| `sidecar.dashboards.provider.folder` | Logical folder in which grafana groups dashboards | `""` |
+3 -1
View File
@@ -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"
@@ -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
+1
View File
@@ -432,6 +432,7 @@ sidecar:
# skipTlsVerify: true
dashboards:
enabled: false
SCProvider: true
# 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)