Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ main:
# postgresdb:
# password: 'big secret'

# A list of environment variables to import from configMapRef or secretRef.
extraEnvFrom: []
# - configMapRef:
# name: n8n-config
# - secretRef:
# name: n8n-config

# Extra environmental variables, so you can reference other configmaps and secrets into n8n as env vars.
extraEnv:
# N8N_DB_POSTGRESDB_NAME:
Expand Down Expand Up @@ -372,6 +379,9 @@ worker:
# additional (to main) config for worker
secret: {}

# A list of environment variables to import from configMapRef or secretRef.
extraEnvFrom: []

# Extra environmental variables, so you can reference other configmaps and secrets into n8n as env vars.
extraEnv: {}

Expand Down Expand Up @@ -555,6 +565,9 @@ webhook:
# additional (to main) config for webhook
secret: {}

# A list of environment variables to import from configMapRef or secretRef.
extraEnvFrom: []

# Extra environmental variables, so you can reference other configmaps and secrets into n8n as env vars.
extraEnv: {}
# WEBHOOK_URL:
Expand Down
6 changes: 3 additions & 3 deletions charts/n8n/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: n8n
version: 1.0.10
version: 1.1.0
appVersion: 1.99.1
type: application
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."
Expand Down Expand Up @@ -34,5 +34,5 @@
artifacthub.io/prerelease: "false"
# supported kinds are added, changed, deprecated, removed, fixed and security.
artifacthub.io/changes: |
- kind: fixed
description: "rollback of a fix that actually broke things: https://github.com/8gears/n8n-helm-chart/issues/200"
- kind: added
description: "support envFrom in values file"

Check failure on line 38 in charts/n8n/Chart.yaml

View workflow job for this annotation

GitHub Actions / lint-test

38:52 [new-line-at-end-of-file] no new line character at the end of file
8 changes: 5 additions & 3 deletions charts/n8n/templates/deployment.webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,21 @@ spec:
- configMapRef:
name: {{ include "n8n.fullname" . }}-app-config
{{- end }}
{{- if .Values.main.secret }}
{{- if .Values.main.secret }}
- secretRef:
name: {{ include "n8n.fullname" . }}-app-secret
{{- end }}
{{- if .Values.webhook.config }}
- configMapRef:
name: {{ include "n8n.fullname" . }}-webhook-config
{{- end }}
{{- if .Values.webhook.secret }}
{{- if .Values.webhook.secret }}
- secretRef:
name: {{ include "n8n.fullname" . }}-webhook-secret
{{- end }}

{{- if .Values.webhook.extraEnvFrom }}
{{- toYaml .Values.webhook.extraEnvFrom | nindent 12 }}
{{- end }}
env: {{ not (empty .Values.webhook.extraEnv) | ternary nil "[]" }}
{{- range $key, $value := .Values.webhook.extraEnv }}
- name: {{ $key }}
Expand Down
7 changes: 5 additions & 2 deletions charts/n8n/templates/deployment.worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,21 @@ spec:
- configMapRef:
name: {{ include "n8n.fullname" . }}-app-config
{{- end }}
{{- if .Values.main.secret }}
{{- if .Values.main.secret }}
- secretRef:
name: {{ include "n8n.fullname" . }}-app-secret
{{- end }}
{{- if .Values.worker.config }}
- configMapRef:
name: {{ include "n8n.fullname" . }}-worker-config
{{- end }}
{{- if .Values.worker.secret }}
{{- if .Values.worker.secret }}
- secretRef:
name: {{ include "n8n.fullname" . }}-worker-secret
{{- end }}
{{- if .Values.worker.extraEnvFrom }}
{{- toYaml .Values.worker.extraEnvFrom | nindent 12 }}
{{- end }}
env: {{ not (empty .Values.worker.extraEnv) | ternary nil "[]" }}
{{- range $key, $value := .Values.worker.extraEnv }}
- name: {{ $key }}
Expand Down
3 changes: 3 additions & 0 deletions charts/n8n/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ spec:
- secretRef:
name: {{ include "n8n.fullname" . }}-app-secret
{{- end }}
{{- if .Values.main.extraEnvFrom }}
{{- toYaml .Values.main.extraEnvFrom | nindent 12 }}
{{- end }}
env: {{ not (empty .Values.main.extraEnv) | ternary nil "[]" }}
{{- range $key, $value := .Values.main.extraEnv }}
- name: {{ $key }}
Expand Down
2 changes: 0 additions & 2 deletions charts/n8n/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{ if .Values.main.service.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -19,4 +18,3 @@ spec:
selector:
{{- include "n8n.selectorLabels" . | nindent 4 }}
app.kubernetes.io/type: master
{{ end }}
14 changes: 13 additions & 1 deletion charts/n8n/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ main:
# postgresdb:
# password: 'big secret'

# A list of environment variables to import from configMapRef or secretRef.
extraEnvFrom: []
# - configMapRef:
# name: n8n-config
# - secretRef:
# name: n8n-config

# Extra environmental variables, so you can reference other configmaps and secrets into n8n as env vars.
extraEnv:
# N8N_DB_POSTGRESDB_NAME:
Expand Down Expand Up @@ -235,7 +242,6 @@ main:


service:
enabled: true
annotations: {}
# -- Service types allow you to specify what kind of Service you want.
# E.g., ClusterIP, NodePort, LoadBalancer, ExternalName
Expand Down Expand Up @@ -279,6 +285,9 @@ worker:
# additional (to main) config for worker
secret: {}

# A list of environment variables to import from configMapRef or secretRef.
extraEnvFrom: []

# Extra environmental variables, so you can reference other configmaps and secrets into n8n as env vars.
extraEnv: {}

Expand Down Expand Up @@ -462,6 +471,9 @@ webhook:
# additional (to main) config for webhook
secret: {}

# A list of environment variables to import from configMapRef or secretRef.
extraEnvFrom: []

# Extra environmental variables, so you can reference other configmaps and secrets into n8n as env vars.
extraEnv: {}
# WEBHOOK_URL:
Expand Down
Loading