Skip to content

Commit

Permalink
MINOR: haproxy: Adds envFrom to Deployment and Deamonset (#252)
Browse files Browse the repository at this point in the history
* Add envFrom to the HA deployment
* Add envFrom to the HA daemonset
* Update the description
  • Loading branch information
pedrovsg authored Aug 7, 2024
1 parent fb8af0e commit e568719
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions haproxy/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ spec:
env:
{{- toYaml . | trim | nindent 12 }}
{{- end }}
{ { - with .Values.extraEnvFrom } }
envFrom:
{ { - toYaml . | trim | nindent 12 } }
{ { - end } }
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.lifecycle }}
Expand Down
4 changes: 4 additions & 0 deletions haproxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ spec:
env:
{{- toYaml . | trim | nindent 12 }}
{{- end }}
{ { - with .Values.extraEnvFrom } }
envFrom:
{ { - toYaml . | trim | nindent 12 } }
{ { - end } }
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.lifecycle }}
Expand Down
7 changes: 7 additions & 0 deletions haproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,13 @@ extraEnvs: []
# fieldRef:
# fieldPath: status.podIP

## Use envFrom to add env vars from a secret or configmap to the HA Proxy 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

## Additional volumeMounts to the controller main container
extraVolumeMounts: []
## Example empty volume mounts when using securityContext->readOnlyRootFilesystem
Expand Down

0 comments on commit e568719

Please sign in to comment.