Skip to content

Commit 91739cd

Browse files
committed
feat: add extraContainers support
With the help of coderabbit <3
1 parent 565fbf7 commit 91739cd

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

charts/n8n/templates/deployment.webhook.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ spec:
118118
{{- if .Values.webhook.extraVolumeMounts }}
119119
{{- toYaml .Values.webhook.extraVolumeMounts | nindent 12 }}
120120
{{- end }}
121+
{{- if .Values.webhook.extraContainers }}
122+
{{ tpl (toYaml .Values.webhook.extraContainers) . | nindent 8}}
123+
{{- end }}
121124
{{- with .Values.hostAliases }}
122125
hostAliases:
123126
{{- toYaml . | nindent 8 }}

charts/n8n/templates/deployment.worker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ spec:
114114
{{- if .Values.worker.extraVolumeMounts }}
115115
{{- toYaml .Values.worker.extraVolumeMounts | nindent 12 }}
116116
{{- end }}
117+
{{- if .Values.worker.extraContainers }}
118+
{{ tpl (toYaml .Values.worker.extraContainers) . | nindent 8}}
119+
{{- end }}
117120
{{- with .Values.hostAliases }}
118121
hostAliases:
119122
{{- toYaml . | nindent 8 }}

charts/n8n/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ spec:
9999
{{- if .Values.main.extraVolumeMounts }}
100100
{{- toYaml .Values.main.extraVolumeMounts | nindent 12 }}
101101
{{- end }}
102+
{{- if .Values.main.extraContainers }}
103+
{{ tpl (toYaml .Values.main.extraContainers) . | nindent 8}}
104+
{{- end }}
102105
{{- with .Values.hostAliases }}
103106
hostAliases:
104107
{{- toYaml . | nindent 8 }}

charts/n8n/values.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,13 @@ main:
260260
tolerations: []
261261
affinity: {}
262262

263+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
264+
extraContainers: null
265+
# extraContainers:
266+
# - name: my-sidecar
267+
# image: busybox:latest
268+
# command: ["sh", "-c", "echo hello"]
269+
263270
# # # # # # # # # # # # # # # #
264271
#
265272
# Worker related settings
@@ -445,6 +452,13 @@ worker:
445452
tolerations: []
446453
affinity: {}
447454

455+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
456+
extraContainers: null
457+
# extraContainers:
458+
# - name: my-sidecar
459+
# image: busybox:latest
460+
# command: ["sh", "-c", "echo hello"]
461+
448462
# Webhook related settings
449463
# With .Values.scaling.webhook.enabled=true you disable Webhooks from the main process, but you enable the processing on a different Webhook instance.
450464
# See https://github.com/8gears/n8n-helm-chart/issues/39#issuecomment-1579991754 for the full explanation.
@@ -630,6 +644,13 @@ webhook:
630644
tolerations: []
631645
affinity: {}
632646

647+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
648+
extraContainers: null
649+
# extraContainers:
650+
# - name: my-sidecar
651+
# image: busybox:latest
652+
# command: ["sh", "-c", "echo hello"]
653+
633654
#
634655
# User defined supplementary K8s manifests
635656
#

0 commit comments

Comments
 (0)