Skip to content

Commit

Permalink
Merge pull request #807 from D3luxee/watch-datasource-sidecar
Browse files Browse the repository at this point in the history
[grafana] make datasource sidecar watchMethod configurable
  • Loading branch information
zanhsieh committed Nov 16, 2021
2 parents 42d1f66 + 3def92d commit 3d92fe2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down
2 changes: 1 addition & 1 deletion charts/grafana/templates/_pod.tpl
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/grafana/values.yaml
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3d92fe2

Please sign in to comment.