File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,10 @@ spec:
215215 {{- if .Values.controller.extraEnvs -}}
216216 {{- toYaml .Values.controller.extraEnvs | nindent 10 }}
217217 {{- end }}
218+ {{- with .Values.controller.extraEnvFrom }}
219+ envFrom :
220+ {{- toYaml . | trim | nindent 12 }}
221+ {{- end }}
218222 resources :
219223 {{- toYaml .Values.controller.resources | nindent 12 }}
220224 {{- if .Values.controller.lifecycle }}
Original file line number Diff line number Diff line change @@ -208,6 +208,10 @@ spec:
208208 {{- if .Values.controller.extraEnvs -}}
209209 {{- toYaml .Values.controller.extraEnvs | nindent 10 }}
210210 {{- end }}
211+ {{- with .Values.controller.extraEnvFrom }}
212+ envFrom :
213+ {{- toYaml . | trim | nindent 12 }}
214+ {{- end }}
211215 resources :
212216 {{- toYaml .Values.controller.resources | nindent 12 }}
213217 {{- if .Values.controller.lifecycle }}
Original file line number Diff line number Diff line change @@ -521,6 +521,13 @@ controller:
521521 # - name: TZ
522522 # value: "Etc/UTC"
523523
524+ # # Use envFrom to add env vars from a secret or ConfigMap to the HAProxy container
525+ # # ref: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
526+ extraEnvFrom : []
527+ # # Example passing the pod IP into a container
528+ # - configMapRef:
529+ # name: ha-env-config
530+
524531 # # Add additional containers
525532 extraContainers : []
526533 # # Example sidecar
You can’t perform that action at this time.
0 commit comments