Skip to content

Commit 5d78a3a

Browse files
authored
feat(helm): add configurable extraEnvFrom to admin-api and enterprisegw (#14533)
1 parent 3f6792d commit 5d78a3a

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

docs/sources/setup/install/helm/reference.md

+20
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ This is the generated reference for the Loki Helm Chart values.
5353
"env": [],
5454
"extraArgs": {},
5555
"extraContainers": [],
56+
"extraEnvFrom": [],
5657
"extraVolumeMounts": [],
5758
"extraVolumes": [],
5859
"hostAliases": [],
@@ -129,6 +130,15 @@ This is the generated reference for the Loki Helm Chart values.
129130
<td><pre lang="json">
130131
[]
131132
</pre>
133+
</td>
134+
</tr>
135+
<tr>
136+
<td>adminApi.extraEnvFrom</td>
137+
<td>list</td>
138+
<td>Environment variables from secrets or configmaps to add to the admin-api pods</td>
139+
<td><pre lang="json">
140+
[]
141+
</pre>
132142
</td>
133143
</tr>
134144
<tr>
@@ -3616,6 +3626,7 @@ false
36163626
"env": [],
36173627
"extraArgs": {},
36183628
"extraContainers": [],
3629+
"extraEnvFrom": [],
36193630
"extraVolumeMounts": [],
36203631
"extraVolumes": [],
36213632
"hostAliases": [],
@@ -3695,6 +3706,15 @@ false
36953706
<td><pre lang="json">
36963707
[]
36973708
</pre>
3709+
</td>
3710+
</tr>
3711+
<tr>
3712+
<td>enterpriseGateway.extraEnvFrom</td>
3713+
<td>list</td>
3714+
<td>Environment variables from secrets or configmaps to add to the enterprise gateway pods</td>
3715+
<td><pre lang="json">
3716+
[]
3717+
</pre>
36983718
</td>
36993719
</tr>
37003720
<tr>

production/helm/loki/templates/admin-api/deployment-admin-api.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ spec:
121121
{{- if .Values.adminApi.env }}
122122
{{ toYaml .Values.adminApi.env | nindent 12 }}
123123
{{- end }}
124+
{{- with .Values.adminApi.extraEnvFrom }}
125+
envFrom:
126+
{{- toYaml . | nindent 12 }}
127+
{{- end }}
124128
{{- with .Values.adminApi.extraContainers }}
125129
{{ toYaml . | nindent 8 }}
126130
{{- end }}

production/helm/loki/templates/gateway/deployment-gateway-enterprise.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ spec:
114114
{{- if .Values.enterpriseGateway.env }}
115115
{{ toYaml .Values.enterpriseGateway.env | nindent 12 }}
116116
{{- end }}
117+
{{- with .Values.enterpriseGateway.extraEnvFrom }}
118+
envFrom:
119+
{{- toYaml . | nindent 12 }}
120+
{{- end }}
117121
{{- with .Values.enterpriseGateway.extraContainers }}
118122
{{ toYaml . | nindent 8 }}
119123
{{- end }}

production/helm/loki/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,8 @@ adminApi:
821821
# - domain.tld
822822
# -- Additional CLI arguments for the `admin-api` target
823823
extraArgs: {}
824+
# -- Environment variables from secrets or configmaps to add to the admin-api pods
825+
extraEnvFrom: []
824826
# -- Additional labels for the `admin-api` Deployment
825827
labels: {}
826828
# -- Additional annotations for the `admin-api` Deployment
@@ -1099,6 +1101,8 @@ enterpriseGateway:
10991101
# - domain.tld
11001102
# -- Additional CLI arguments for the `gateway` target
11011103
extraArgs: {}
1104+
# -- Environment variables from secrets or configmaps to add to the enterprise gateway pods
1105+
extraEnvFrom: []
11021106
# -- Additional labels for the `gateway` Pod
11031107
labels: {}
11041108
# -- Additional annotations for the `gateway` Pod

0 commit comments

Comments
 (0)