Skip to content

Commit 1dcaa30

Browse files
Merge pull request #3962 from dguendisch/fix-GF_SECURITY_ADMIN_USER
[grafana] Fix using `GF_SECURITY_ADMIN_USER__FILE`
2 parents de9a2da + 09ac49b commit 1dcaa30

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

charts/grafana/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: grafana
3-
version: 10.1.3
3+
version: 10.1.4
44
appVersion: 12.2.1
55
kubeVersion: "^1.8.0-0"
66
description: The leading tool for querying and visualizing time series and metrics.

charts/grafana/templates/_pod.tpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ containers:
397397
- name: SCRIPT
398398
value: {{ quote . }}
399399
{{- end }}
400-
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
400+
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_ADMIN_USER__FILE) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
401401
- name: REQ_USERNAME
402402
valueFrom:
403403
secretKeyRef:
@@ -530,7 +530,7 @@ containers:
530530
value: {{ quote . }}
531531
{{- end }}
532532
{{- if not .Values.sidecar.dashboards.skipReload }}
533-
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
533+
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_ADMIN_USER__FILE) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
534534
- name: REQ_USERNAME
535535
valueFrom:
536536
secretKeyRef:
@@ -657,7 +657,7 @@ containers:
657657
- name: SCRIPT
658658
value: {{ quote . }}
659659
{{- end }}
660-
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
660+
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_ADMIN_USER__FILE) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
661661
- name: REQ_USERNAME
662662
valueFrom:
663663
secretKeyRef:
@@ -780,7 +780,7 @@ containers:
780780
- name: SCRIPT
781781
value: {{ quote . }}
782782
{{- end }}
783-
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
783+
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_ADMIN_USER__FILE) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
784784
- name: REQ_USERNAME
785785
valueFrom:
786786
secretKeyRef:
@@ -903,7 +903,7 @@ containers:
903903
- name: SKIP_TLS_VERIFY
904904
value: "{{ . }}"
905905
{{- end }}
906-
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
906+
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_ADMIN_USER__FILE) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
907907
- name: REQ_USERNAME
908908
valueFrom:
909909
secretKeyRef:
@@ -1141,7 +1141,7 @@ containers:
11411141
valueFrom:
11421142
fieldRef:
11431143
fieldPath: status.podIP
1144-
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
1144+
{{- if and (not .Values.env.GF_SECURITY_ADMIN_USER) (not .Values.env.GF_SECURITY_ADMIN_USER__FILE) (not .Values.env.GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION) }}
11451145
- name: GF_SECURITY_ADMIN_USER
11461146
valueFrom:
11471147
secretKeyRef:

0 commit comments

Comments
 (0)