Grafana: Add support for arbitrary environment variables
This updates the Grafana chart to support the definition of arbitrary environment variables to support scenarios where additional information may be required at runtime for things like datasource and dashboard provisioning Change-Id: I95e4abe9030116a440c6d78a1d14dbcaaf743b40 Signed-off-by: Steve Wilkerson <sw5822@att.com>
This commit is contained in:
parent
0edd3e18de
commit
a4816feda2
@ -83,6 +83,9 @@ spec:
|
||||
key: GRAFANA_ADMIN_PASSWORD
|
||||
- name: PROMETHEUS_URL
|
||||
value: {{ tuple "monitoring" "internal" "api" $envAll | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
|
||||
{{- if .Values.pod.env.grafana }}
|
||||
{{ include "helm-toolkit.utils.to_k8s_env_vars" .Values.pod.env.grafana | indent 12 }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: pod-tmp
|
||||
mountPath: /tmp
|
||||
|
@ -43,6 +43,8 @@ labels:
|
||||
node_selector_value: enabled
|
||||
|
||||
pod:
|
||||
env:
|
||||
grafana: null
|
||||
security_context:
|
||||
dashboard:
|
||||
pod:
|
||||
|
Loading…
Reference in New Issue
Block a user