mirror of
https://github.com/outbackdingo/n8n-chart.git
synced 2026-08-25 14:53:31 +00:00
fix: upgrade n8n version & add some default configs (#8)
* try to fix gh action * fix(ci): fix test pods * fix: add env config for logs and healthcheck * fix(deps): Upgrade n8n version Co-authored-by: a5r0n <[email protected]>
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
|||||||
- name: Set up Helm
|
- name: Set up Helm
|
||||||
uses: azure/setup-helm@v1
|
uses: azure/setup-helm@v1
|
||||||
with:
|
with:
|
||||||
version: v3.4.0
|
version: v3.8.1
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
@@ -23,20 +23,24 @@ jobs:
|
|||||||
- name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
uses: helm/[email protected]
|
uses: helm/[email protected]
|
||||||
|
|
||||||
|
- name: Add helm repos
|
||||||
|
run: |
|
||||||
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
|
|
||||||
- name: Run chart-testing (list-changed)
|
- name: Run chart-testing (list-changed)
|
||||||
id: list-changed
|
id: list-changed
|
||||||
run: |
|
run: |
|
||||||
changed=$(ct list-changed)
|
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --chart-dirs .)
|
||||||
if [[ -n "$changed" ]]; then
|
if [[ -n "$changed" ]]; then
|
||||||
echo "::set-output name=changed::true"
|
echo "::set-output name=changed::true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run chart-testing (lint)
|
- name: Run chart-testing (lint)
|
||||||
run: ct lint
|
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --chart-dirs . --validate-maintainers=false
|
||||||
|
|
||||||
- name: Create kind cluster
|
- name: Create kind cluster
|
||||||
uses: helm/[email protected]
|
uses: helm/[email protected]
|
||||||
if: steps.list-changed.outputs.changed == 'true'
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
|
|
||||||
- name: Run chart-testing (install)
|
- name: Run chart-testing (install)
|
||||||
run: ct install
|
run: ct install --target-branch ${{ github.event.repository.default_branch }} --chart-dirs .
|
||||||
+2
-2
@@ -16,10 +16,10 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.2.0
|
version: 0.2.2
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "0.145.0"
|
appVersion: "0.203.0"
|
||||||
|
|||||||
@@ -3,15 +3,22 @@ apiVersion: v1
|
|||||||
metadata:
|
metadata:
|
||||||
name: {{ include "n8n.fullname" . }}
|
name: {{ include "n8n.fullname" . }}
|
||||||
data:
|
data:
|
||||||
{{ if .Values.postgresql.enabled }}DB_TYPE: "postgresdb" {{ end }}
|
{{ if .Values.postgresql.enabled }}
|
||||||
|
DB_TYPE: "postgresdb"
|
||||||
DB_POSTGRESDB_HOST: {{ include "n8n.fullname" . }}-postgresql
|
DB_POSTGRESDB_HOST: {{ include "n8n.fullname" . }}-postgresql
|
||||||
DB_POSTGRESDB_USER: {{ .Values.postgresql.postgresqlUsername }}
|
DB_POSTGRESDB_USER: {{ .Values.postgresql.auth.username }}
|
||||||
DB_POSTGRESDB_DATABASE: {{ .Values.postgresql.postgresqlDatabase }}
|
DB_POSTGRESDB_DATABASE: {{ .Values.postgresql.auth.database }}
|
||||||
DB_POSTGRESDB_PASSWORD: {{ .Values.postgresql.postgresqlPassword }}
|
DB_POSTGRESDB_PASSWORD: {{ .Values.postgresql.auth.password }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
N8N_METRICS: "true"
|
||||||
|
N8N_METRICS_PREFIX: "n8n_"
|
||||||
|
|
||||||
QUEUE_BULL_REDIS_HOST: {{ include "n8n.fullname" . }}-redis-headless
|
QUEUE_BULL_REDIS_HOST: {{ include "n8n.fullname" . }}-redis-headless
|
||||||
QUEUE_BULL_REDIS_PORT: "6379"
|
QUEUE_BULL_REDIS_PORT: "6379"
|
||||||
QUEUE_BULL_REDIS_DB: "0"
|
QUEUE_BULL_REDIS_DB: "0"
|
||||||
|
QUEUE_HEALTH_CHECK_ACTIVE: "true"
|
||||||
|
QUEUE_HEALTH_CHECK_PORT: "5679"
|
||||||
|
|
||||||
{{ if .Values.n8n.auth.enabled }}
|
{{ if .Values.n8n.auth.enabled }}
|
||||||
N8N_BASIC_AUTH_ACTIVE: "true"
|
N8N_BASIC_AUTH_ACTIVE: "true"
|
||||||
@@ -28,3 +35,7 @@ data:
|
|||||||
|
|
||||||
EXECUTIONS_DATA_PRUNE: {{ .Values.n8n.data.prune.enabled | quote}}
|
EXECUTIONS_DATA_PRUNE: {{ .Values.n8n.data.prune.enabled | quote}}
|
||||||
EXECUTIONS_DATA_MAX_AGE: {{ .Values.n8n.data.prune.max_age | quote }}
|
EXECUTIONS_DATA_MAX_AGE: {{ .Values.n8n.data.prune.max_age | quote }}
|
||||||
|
|
||||||
|
N8N_LOG_LEVEL: {{ .Values.n8n.log_level | default "debug" | quote }}
|
||||||
|
DB_LOGGING_ENABLED: {{ .Values.n8n.db_logging_enabled | default "true" | quote }}
|
||||||
|
DB_LOGGING_OPTIONS: {{ .Values.n8n.db_logging_options | default "all" | quote }}
|
||||||
@@ -102,6 +102,18 @@ spec:
|
|||||||
- n8n
|
- n8n
|
||||||
args:
|
args:
|
||||||
- worker
|
- worker
|
||||||
|
ports:
|
||||||
|
- name: healthz
|
||||||
|
containerPort: 5679
|
||||||
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: healthz
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /healthz
|
||||||
|
port: healthz
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ include "n8n.fullname" . }}-test-connection"
|
name: "{{ include "n8n.fullname" . }}-test-main-connection"
|
||||||
labels:
|
labels:
|
||||||
{{- include "n8n.labels" . | nindent 4 }}
|
{{- include "n8n.labels" . | nindent 4 }}
|
||||||
annotations:
|
annotations:
|
||||||
@@ -11,5 +11,21 @@ spec:
|
|||||||
- name: wget
|
- name: wget
|
||||||
image: busybox
|
image: busybox
|
||||||
command: ['wget']
|
command: ['wget']
|
||||||
args: ['{{ include "n8n.fullname" . }}:{{ .Values.service.port }}']
|
args: ['http://{{ include "n8n.fullname" . }}-main:{{ .Values.service.port }}/healthz']
|
||||||
|
restartPolicy: Never
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: "{{ include "n8n.fullname" . }}-test-webhook-connection"
|
||||||
|
labels:
|
||||||
|
{{- include "n8n.labels" . | nindent 4 }}
|
||||||
|
annotations:
|
||||||
|
"helm.sh/hook": test
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: wget
|
||||||
|
image: busybox
|
||||||
|
command: ['wget']
|
||||||
|
args: ['http://{{ include "n8n.fullname" . }}-webhook:{{ .Values.service.port }}/healthz']
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
|||||||
+6
-4
@@ -25,9 +25,10 @@ redis:
|
|||||||
|
|
||||||
# values for N8N
|
# values for N8N
|
||||||
n8n:
|
n8n:
|
||||||
|
log_level: "debug"
|
||||||
timezone: ""
|
timezone: ""
|
||||||
webhook:
|
webhook:
|
||||||
#TODO: use default serice url
|
# TODO: use default service url
|
||||||
url: http://localhost
|
url: http://localhost
|
||||||
auth:
|
auth:
|
||||||
enabled: false
|
enabled: false
|
||||||
@@ -42,9 +43,10 @@ n8n:
|
|||||||
# values for PostgreSql helm chart
|
# values for PostgreSql helm chart
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
postgresqlUsername: n8n
|
auth:
|
||||||
postgresqlDatabase: n8n
|
database: "n8n"
|
||||||
postgresqlPassword: "N8nPassW0r$"
|
username: "n8n"
|
||||||
|
password: "N8nPassW0r$"
|
||||||
persistence:
|
persistence:
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user