mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/grafana] Define GF_INSTALL_PLUGINS (#876)
* [stable/grafana] Define GF_INSTALL_PLUGINS This is intended to work with the official Grafana image. When this environment variable is defined, the bootstrap script `run.sh` installs the given list of plugins before launching the Grafana server. * Bump minor version
This commit is contained in:
committed by
Adnan Abdulhussein
parent
e0db20e829
commit
1cb0851dce
@@ -1,5 +1,5 @@
|
||||
name: grafana
|
||||
version: 0.2.5
|
||||
version: 0.3.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
|
||||
|
||||
@@ -9,4 +9,7 @@ metadata:
|
||||
release: "{{ .Release.Name }}"
|
||||
name: {{ template "server.fullname" . }}-config
|
||||
data:
|
||||
{{- if .Values.server.installPlugins }}
|
||||
grafana-install-plugins: {{ .Values.server.installPlugins | quote }}
|
||||
{{- end }}
|
||||
{{ toYaml .Values.serverConfigFile | indent 2 }}
|
||||
|
||||
@@ -38,6 +38,13 @@ spec:
|
||||
secretKeyRef:
|
||||
name: {{ template "server.fullname" . }}
|
||||
key: grafana-admin-password
|
||||
{{- if .Values.server.installPlugins }}
|
||||
- name: GF_INSTALL_PLUGINS
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: {{ template "server.fullname" . }}-config
|
||||
key: grafana-install-plugins
|
||||
{{- end }}
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
readinessProbe:
|
||||
|
||||
@@ -132,6 +132,12 @@ server:
|
||||
##
|
||||
# terminationGracePeriodSeconds: 300
|
||||
|
||||
## Pass the plugins you want installed as a comma seperated list.
|
||||
## This will pass each plugin name to `grafana-cli plugins install ${plugin}`.
|
||||
## Ref: https://github.com/grafana/grafana-docker#installing-plugins-for-grafana-3
|
||||
##
|
||||
# installPlugins:
|
||||
|
||||
# Set datasource in beginning
|
||||
setDatasource:
|
||||
## If true, an initial Grafana Datasource will be set
|
||||
|
||||
Reference in New Issue
Block a user