diff --git a/stable/grafana/Chart.yaml b/stable/grafana/Chart.yaml index d5980a7fc0..34c28f4dbf 100644 --- a/stable/grafana/Chart.yaml +++ b/stable/grafana/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: grafana -version: 4.3.2 +version: 4.4.0 appVersion: 6.5.2 kubeVersion: "^1.8.0-0" description: The leading tool for querying and visualizing time series and metrics. diff --git a/stable/grafana/templates/_pod.tpl b/stable/grafana/templates/_pod.tpl index 059051a85e..8f0d843eed 100644 --- a/stable/grafana/templates/_pod.tpl +++ b/stable/grafana/templates/_pod.tpl @@ -224,7 +224,7 @@ containers: name: {{ .Values.admin.existingSecret | default (include "grafana.fullname" .) }} key: {{ .Values.admin.userKey | default "admin-user" }} {{- end }} - {{- if not .Values.env.GF_SECURITY_ADMIN_PASSWORD }} + {{- if and (not .Values.env.GF_SECURITY_ADMIN_PASSWORD) (not .Values.env.GF_SECURITY_ADMIN_PASSWORD__FILE) }} - name: GF_SECURITY_ADMIN_PASSWORD valueFrom: secretKeyRef: diff --git a/stable/grafana/templates/deployment.yaml b/stable/grafana/templates/deployment.yaml index b63e5d81f9..fcd08f4ac9 100644 --- a/stable/grafana/templates/deployment.yaml +++ b/stable/grafana/templates/deployment.yaml @@ -38,7 +38,7 @@ spec: checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/dashboards-json-config: {{ include (print $.Template.BasePath "/dashboards-json-configmap.yaml") . | sha256sum }} checksum/sc-dashboard-provider-config: {{ include (print $.Template.BasePath "/configmap-dashboard-provider.yaml") . | sha256sum }} -{{- if not .Values.admin.existingSecret }} +{{- if and (not .Values.admin.existingSecret) (not .Values.env.GF_SECURITY_ADMIN_PASSWORD__FILE) }} checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }} {{- end }} {{- with .Values.podAnnotations }} @@ -46,4 +46,4 @@ spec: {{- end }} spec: {{- include "grafana.pod" . | nindent 6 }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/stable/grafana/templates/secret.yaml b/stable/grafana/templates/secret.yaml index 8175834ec5..2b1126cae0 100644 --- a/stable/grafana/templates/secret.yaml +++ b/stable/grafana/templates/secret.yaml @@ -1,4 +1,4 @@ -{{- if not .Values.admin.existingSecret }} +{{- if and (not .Values.admin.existingSecret) (not .Values.env.GF_SECURITY_ADMIN_PASSWORD__FILE) }} apiVersion: v1 kind: Secret metadata: