Skip to content

Commit 2055d42

Browse files
committed
add extraContainers option
A new option to add sidecar containers to the controller's pod.
1 parent 57ce77a commit 2055d42

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

haproxy-ingress/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Parameter | Description | Default
106106
`controller.extraEnvs` | extra environment variables for the haproxy-ingress-controller | `[]`
107107
`controller.extraVolumes` | extra volumes for the haproxy-ingress-controller | `[]`
108108
`controller.extraVolumeMounts` | extra volume mounts for the haproxy-ingress-controller | `[]`
109+
`controller.extraContainers` | extra containers that to the haproxy-ingress-controller | `[]`
109110
`controller.initContainers` | extra containers that can initialize the haproxy-ingress-controller | `[]`
110111
`controller.template` | custom template for haproxy-ingress-controller | `{}`
111112
`controller.defaultBackendService` | backend service to use if defaultBackend.enabled==false | `""`

haproxy-ingress/templates/_podtemplate.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ spec:
184184
resources:
185185
{{- toYaml .Values.controller.metrics.resources | nindent 8 }}
186186
{{- end }}
187+
{{- if .Values.controller.extraContainers }}
188+
{{- toYaml .Values.controller.extraContainers | nindent 4 }}
189+
{{- end }}
187190
{{- if .Values.controller.imagePullSecrets }}
188191
imagePullSecrets:
189192
{{- toYaml .Values.controller.imagePullSecrets | nindent 4 }}

haproxy-ingress/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ controller:
4646
extraVolumes: []
4747
extraVolumeMounts: []
4848

49+
## Additional containers to the pod.
50+
extraContainers: []
51+
4952
## Additional containers that can initialize the pod.
5053
initContainers: []
5154

0 commit comments

Comments
 (0)