diff --git a/charts/grafana/Chart.yaml b/charts/grafana/Chart.yaml index ed7a4b8eaf..288dc3889b 100644 --- a/charts/grafana/Chart.yaml +++ b/charts/grafana/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: grafana -version: 6.17.5 +version: 6.17.6 appVersion: 8.2.3 -kubeVersion: '^1.8.0-0' +kubeVersion: "^1.8.0-0" description: The leading tool for querying and visualizing time series and metrics. home: https://grafana.net icon: https://raw.githubusercontent.com/grafana/grafana/master/public/img/logo_transparent_400x.png diff --git a/charts/grafana/templates/_pod.tpl b/charts/grafana/templates/_pod.tpl index fda3cf49ab..f0c5abebc4 100644 --- a/charts/grafana/templates/_pod.tpl +++ b/charts/grafana/templates/_pod.tpl @@ -87,7 +87,7 @@ initContainers: imagePullPolicy: {{ .Values.sidecar.imagePullPolicy }} env: - name: METHOD - value: LIST + value: {{ .Values.sidecar.datasources.watchMethod }} - name: LABEL value: "{{ .Values.sidecar.datasources.label }}" {{- if .Values.sidecar.datasources.labelValue }} diff --git a/charts/grafana/values.yaml b/charts/grafana/values.yaml index bec857501f..4180118ca3 100644 --- a/charts/grafana/values.yaml +++ b/charts/grafana/values.yaml @@ -643,6 +643,8 @@ sidecar: # Otherwise the namespace in which the sidecar is running will be used. # It's also possible to specify ALL to search in all namespaces. searchNamespace: null + # Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds. + watchMethod: WATCH # search in configmap, secret or both resource: both # If specified, the sidecar will look for annotation with this name to create folder and put graph here. @@ -674,6 +676,8 @@ sidecar: # Otherwise the namespace in which the sidecar is running will be used. # It's also possible to specify ALL to search in all namespaces searchNamespace: null + # Method to use to detect ConfigMap changes. With WATCH the sidecar will do a WATCH requests, with SLEEP it will list all ConfigMaps, then sleep for 60 seconds. + watchMethod: LIST # search in configmap, secret or both resource: both notifiers: