Skip to content

Commit daddddc

Browse files
committed
chore(grafana): Add support for custom script and extra mounts in sidecar configuration
Signed-off-by: Hector Valcarcel <[email protected]>
1 parent 589a92f commit daddddc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

charts/grafana/templates/_pod.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ initContainers:
230230
- name: SKIP_TLS_VERIFY
231231
value: "{{ . }}"
232232
{{- end }}
233+
{{- if .Values.sidecar.datasources.script }}
234+
- name: SCRIPT
235+
value: "{{ .Values.sidecar.datasources.script }}"
236+
{{- end }}
233237
{{- with .Values.sidecar.resources }}
234238
resources:
235239
{{- toYaml . | nindent 6 }}
@@ -241,6 +245,9 @@ initContainers:
241245
volumeMounts:
242246
- name: sc-datasources-volume
243247
mountPath: "/etc/grafana/provisioning/datasources"
248+
{{- with .Values.sidecar.datasources.extraMounts }}
249+
{{- toYaml . | trim | nindent 6 }}
250+
{{- end }}
244251
{{- end }}
245252
{{- if and .Values.sidecar.notifiers.enabled .Values.sidecar.notifiers.initNotifiers }}
246253
- name: {{ include "grafana.name" . }}-init-sc-notifiers

0 commit comments

Comments
 (0)