Skip to content

Commit 20fcf9f

Browse files
committed
adds override for sidecar containers
1 parent 5e77415 commit 20fcf9f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/nginx-gateway-fabric/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ spec:
165165
{{- with .Values.nginxGateway.extraVolumeMounts -}}
166166
{{ toYaml . | nindent 8 }}
167167
{{- end }}
168+
{{- if .Values.nginxGateway.extraContainers }}
169+
{{- toYaml .Values.nginxGateway.extraContainers | nindent 6 }}
170+
{{- end }}
168171
{{- if .Values.nginxGateway.topologySpreadConstraints }}
169172
topologySpreadConstraints:
170173
{{- toYaml .Values.nginxGateway.topologySpreadConstraints | nindent 8 }}

charts/nginx-gateway-fabric/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ nginxGateway:
3131
# -- Set of custom annotations for GatewayClass objects.
3232
gatewayClassAnnotations: {}
3333

34+
# Extra containers to be added to the NGINX Gateway Fabric control plane pod.
35+
# Use this to add additional containers to the control plane pod, such as sidecars.
36+
# Note that these containers will not have access to the NGINX Gateway Fabric control plane's service account.
37+
extraContainers: []
38+
3439
# @schema
3540
# pattern: ^gateway.nginx.org/.*
3641
# required: true

0 commit comments

Comments
 (0)