Skip to content

Commit

Permalink
MINOR: kubernetes-ingress: Add envFrom to Deployment and Deamonset (#256
Browse files Browse the repository at this point in the history
)

Analogous to #252, but for `kubernetes-ingress` chart.
  • Loading branch information
mecampbellsoup authored Aug 21, 2024
1 parent 85e14b3 commit 5183eee
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kubernetes-ingress/templates/controller-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ spec:
{{- if .Values.controller.extraEnvs -}}
{{- toYaml .Values.controller.extraEnvs | nindent 10 }}
{{- end }}
{{- with .Values.controller.extraEnvFrom }}
envFrom:
{{- toYaml . | trim | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.controller.resources | nindent 12 }}
{{- if .Values.controller.lifecycle }}
Expand Down
4 changes: 4 additions & 0 deletions kubernetes-ingress/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ spec:
{{- if .Values.controller.extraEnvs -}}
{{- toYaml .Values.controller.extraEnvs | nindent 10 }}
{{- end }}
{{- with .Values.controller.extraEnvFrom }}
envFrom:
{{- toYaml . | trim | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.controller.resources | nindent 12 }}
{{- if .Values.controller.lifecycle }}
Expand Down
7 changes: 7 additions & 0 deletions kubernetes-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,13 @@ controller:
# - name: TZ
# value: "Etc/UTC"

## Use envFrom to add env vars from a secret or ConfigMap to the HAProxy container
## ref: https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
extraEnvFrom: []
## Example passing the pod IP into a container
# - configMapRef:
# name: ha-env-config

## Add additional containers
extraContainers: []
## Example sidecar
Expand Down

0 comments on commit 5183eee

Please sign in to comment.