File tree 2 files changed +8
-8
lines changed
helm/aws-load-balancer-controller
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -170,17 +170,14 @@ spec:
170
170
{{- if .Values.loadBalancerClass }}
171
171
- --load-balancer-class={{ .Values.loadBalancerClass }}
172
172
{{- end }}
173
- {{- if or .Values.env .Values.envSecretName .Values.envFrom }}
173
+ {{- if or .Values.env .Values.envSecretName }}
174
174
env :
175
175
{{- if .Values.env}}
176
176
{{- range $key, $value := .Values.env }}
177
177
- name : {{ $key }}
178
178
value : " {{ $value }}"
179
179
{{- end }}
180
180
{{- end }}
181
- {{- if .Values.envFrom }}
182
- {{ .Values.envFrom | toYaml | nindent 8 }}
183
- {{- end }}
184
181
{{- if .Values.envSecretName }}
185
182
- name : AWS_ACCESS_KEY_ID
186
183
valueFrom :
@@ -196,6 +193,10 @@ spec:
196
193
optional : true
197
194
{{- end }}
198
195
{{- end }}
196
+ {{- if .Values.envFrom }}
197
+ envFrom :
198
+ {{- toYaml .Values.envFrom | nindent 10 }}
199
+ {{- end }}
199
200
securityContext :
200
201
{{- toYaml .Values.securityContext | nindent 10 }}
201
202
image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
Original file line number Diff line number Diff line change @@ -282,10 +282,9 @@ env:
282
282
# envSecretName: aws-secret
283
283
284
284
# Use envFrom to set environment variables from a Secret or ConfigMap
285
- envFrom :
286
- # valueFrom:
287
- # - secretKeyRef:
288
- # name: aws-load-balancer-controller
285
+ # envFrom:
286
+ # - secretRef:
287
+ # name: my-secret
289
288
290
289
# Specifies if aws-load-balancer-controller should be started in hostNetwork mode.
291
290
# This is required if using a custom CNI where the managed control plane nodes are unable to initiate
You can’t perform that action at this time.
0 commit comments