Skip to content

Commit 92eb41c

Browse files
committed
add extraContainers support
1 parent 344f5e0 commit 92eb41c

File tree

6 files changed

+53
-5
lines changed

6 files changed

+53
-5
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,13 @@ main:
358358
# Pod termination grace period in seconds
359359
terminationGracePeriodSeconds: 30
360360

361+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
362+
extraContainers: []
363+
# extraContainers:
364+
# - name: my-sidecar
365+
# image: busybox:latest
366+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
367+
361368
# # # # # # # # # # # # # # # #
362369
#
363370
# Worker related settings
@@ -546,6 +553,13 @@ worker:
546553
# Pod termination grace period in seconds
547554
terminationGracePeriodSeconds: 30
548555

556+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
557+
extraContainers: []
558+
# extraContainers:
559+
# - name: my-sidecar
560+
# image: busybox:latest
561+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
562+
549563
# Webhook related settings
550564
# With .Values.scaling.webhook.enabled=true you disable Webhooks from the main process, but you enable the processing on a different Webhook instance.
551565
# See https://github.com/8gears/n8n-helm-chart/issues/39#issuecomment-1579991754 for the full explanation.
@@ -734,6 +748,13 @@ webhook:
734748
# Pod termination grace period in seconds
735749
terminationGracePeriodSeconds: 30
736750

751+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
752+
extraContainers: []
753+
# extraContainers:
754+
# - name: my-sidecar
755+
# image: busybox:latest
756+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
757+
737758
#
738759
# User defined supplementary K8s manifests
739760
#

charts/n8n/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: n8n
3-
version: 1.1.0
3+
version: 1.2.0
44
appVersion: 1.116.2
55
type: application
66
description: "Helm Chart for deploying n8n on Kubernetes, a fair-code workflow automation platform with native AI capabilities for technical teams. Easily automate tasks across different services."
@@ -35,4 +35,4 @@ annotations:
3535
# supported kinds are added, changed, deprecated, removed, fixed and security.
3636
artifacthub.io/changes: |
3737
- kind: added
38-
description: "Add terminationGracePeriodSeconds configuration for main, worker, and webhook pods"
38+
description: "Add extraContainers support for main, workers, and webhooks"

charts/n8n/templates/deployment.webhook.yaml

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

charts/n8n/templates/deployment.worker.yaml

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

charts/n8n/templates/deployment.yaml

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

charts/n8n/values.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ main:
126126
# mountPath: /etc/ssl/certs/postgresql
127127
# readOnly: true
128128

129-
130129
# Number of desired pods. More than one pod is supported in n8n enterprise.
131130
replicaCount: 1
132131

@@ -233,7 +232,6 @@ main:
233232
# - name: data
234233
# mountPath: /home/node/.n8n
235234

236-
237235
service:
238236
enabled: true
239237
annotations: {}
@@ -269,6 +267,13 @@ main:
269267
# Pod termination grace period in seconds
270268
terminationGracePeriodSeconds: 30
271269

270+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
271+
extraContainers: []
272+
# extraContainers:
273+
# - name: my-sidecar
274+
# image: busybox:latest
275+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
276+
272277
# # # # # # # # # # # # # # # #
273278
#
274279
# Worker related settings
@@ -457,6 +462,13 @@ worker:
457462
# Pod termination grace period in seconds
458463
terminationGracePeriodSeconds: 30
459464

465+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
466+
extraContainers: []
467+
# extraContainers:
468+
# - name: my-sidecar
469+
# image: busybox:latest
470+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
471+
460472
# Webhook related settings
461473
# With .Values.scaling.webhook.enabled=true you disable Webhooks from the main process, but you enable the processing on a different Webhook instance.
462474
# See https://github.com/8gears/n8n-helm-chart/issues/39#issuecomment-1579991754 for the full explanation.
@@ -473,7 +485,6 @@ webhook:
473485
# WEBHOOK_URL:
474486
# value: "http://webhook.domain.tld"
475487

476-
477488
#
478489
# Webhook Kubernetes specific settings
479490
#
@@ -645,6 +656,13 @@ webhook:
645656
# Pod termination grace period in seconds
646657
terminationGracePeriodSeconds: 30
647658

659+
# extraContainers is a list of sidecar containers. Specified as a YAML list.
660+
extraContainers: []
661+
# extraContainers:
662+
# - name: my-sidecar
663+
# image: busybox:latest
664+
# command: ["sh", "-c", "while true; do echo hello && sleep 60; done"]
665+
648666
#
649667
# User defined supplementary K8s manifests
650668
#

0 commit comments

Comments
 (0)