mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/grafana] Allow to define GF admin user and admin password in … (#11851)
* [stable/grafana] Allow to define GF admin user and admin password in value file as env Signed-off-by: Cyrille <cyrille@omise.co> * [stable/grafana] Bump version Signed-off-by: Cyrille <cyrille@omise.co>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
0e99601419
commit
f7211a9c35
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: grafana
|
||||
version: 2.2.0
|
||||
version: 2.2.1
|
||||
appVersion: 6.0.0
|
||||
kubeVersion: "^1.8.0-0"
|
||||
description: The leading tool for querying and visualizing time series and metrics.
|
||||
|
||||
@@ -206,16 +206,20 @@ spec:
|
||||
containerPort: 3000
|
||||
protocol: TCP
|
||||
env:
|
||||
{{- if not .Values.env.GF_SECURITY_ADMIN_USER }}
|
||||
- name: GF_SECURITY_ADMIN_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.admin.existingSecret | default (include "grafana.fullname" .) }}
|
||||
key: {{ .Values.admin.userKey | default "admin-user" }}
|
||||
{{- end }}
|
||||
{{- if not .Values.env.GF_SECURITY_ADMIN_PASSWORD }}
|
||||
- name: GF_SECURITY_ADMIN_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.admin.existingSecret | default (include "grafana.fullname" .) }}
|
||||
key: {{ .Values.admin.passwordKey | default "admin-password" }}
|
||||
{{- end }}
|
||||
{{- if .Values.plugins }}
|
||||
- name: GF_INSTALL_PLUGINS
|
||||
valueFrom:
|
||||
|
||||
Reference in New Issue
Block a user