From ab7decfa9dcabd15cc7eb39f8a2184af3530ea33 Mon Sep 17 00:00:00 2001 From: Gokhan Sari Date: Sat, 7 Dec 2024 14:19:36 +0300 Subject: [PATCH] Release n8n chart: v0.1.7, app: v1.71.1 --- charts/n8n/Chart.yaml | 6 +++--- charts/n8n/README.md | 8 ++++---- charts/n8n/templates/configmap-n8n.yaml | 8 ++++---- charts/n8n/templates/configmap-postgres.yaml | 10 +++++----- charts/n8n/templates/deployment-n8n.yaml | 6 +++--- charts/n8n/templates/ingress-n8n.yaml | 12 ++++++------ charts/n8n/templates/secret-postgres.yaml | 6 +++--- charts/n8n/templates/service-n8n.yaml | 12 ++++++------ charts/n8n/templates/service-postgres.yaml | 12 ++++++------ charts/n8n/templates/statefulset-postgres.yaml | 10 +++++----- 10 files changed, 45 insertions(+), 45 deletions(-) diff --git a/charts/n8n/Chart.yaml b/charts/n8n/Chart.yaml index f5b097e..4cd618a 100644 --- a/charts/n8n/Chart.yaml +++ b/charts/n8n/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -appVersion: "1.68.0" -name: n8n +appVersion: "1.71.1" description: An extendable workflow automation tool. +name: n8n type: application -version: 0.1.6 +version: 0.1.7 diff --git a/charts/n8n/README.md b/charts/n8n/README.md index 825bd87..75be89e 100644 --- a/charts/n8n/README.md +++ b/charts/n8n/README.md @@ -1,8 +1,8 @@ # n8n [![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)](#) -[![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square)](#) -[![AppVersion: 1.68.0](https://img.shields.io/badge/AppVersion-1.68.0-informational?style=flat-square)](#) +[![Version: 0.1.7](https://img.shields.io/badge/Version-0.1.7-informational?style=flat-square)](#) +[![AppVersion: 1.71.1](https://img.shields.io/badge/AppVersion-1.71.1-informational?style=flat-square)](#) An extendable workflow automation tool. @@ -15,7 +15,7 @@ $ helm upgrade n8n n8n \ --namespace n8n \ --repo https://th0th.github.io/helm-charts \ --values values.yaml \ - --version 0.1.4 + --version 0.1.7 ``` ## Uninstall @@ -32,7 +32,7 @@ $ helm uninstall --namespace n8n n8n | env | object | `{}` | environment variables to be passed to n8n (see [docs](https://docs.n8n.io/hosting/configuration/environment-variables/)) | | image.pullPolicy | string | `"IfNotPresent"` | n8n image pull policy | | image.repository | string | `"docker.n8n.io/n8nio/n8n"` | n8n image repository | -| image.tag | string | `"1.68.0"` | n8n image tag | +| image.tag | string | `"1.71.1"` | n8n image tag | | ingress.annotations | object | `{}` | the ingress annotations | | ingress.enabled | bool | `false` | enable the ingress | | ingress.hosts | list | `[]` | the ingress host | diff --git a/charts/n8n/templates/configmap-n8n.yaml b/charts/n8n/templates/configmap-n8n.yaml index af9fc6c..d657a3e 100644 --- a/charts/n8n/templates/configmap-n8n.yaml +++ b/charts/n8n/templates/configmap-n8n.yaml @@ -1,8 +1,8 @@ apiVersion: v1 +data: + {{ .Values.env | toYaml | nindent 2 }} kind: ConfigMap metadata: - name: {{ include "n8n.fullname" . }}-n8n labels: - {{- include "n8n.labels" . | nindent 4 }} -data: - {{ .Values.env | toYaml | nindent 2 }} + {{ include "n8n.labels" . | nindent 4 }} + name: {{ include "n8n.fullname" . }}-n8n diff --git a/charts/n8n/templates/configmap-postgres.yaml b/charts/n8n/templates/configmap-postgres.yaml index 4c1cdd2..56b4d95 100644 --- a/charts/n8n/templates/configmap-postgres.yaml +++ b/charts/n8n/templates/configmap-postgres.yaml @@ -1,10 +1,10 @@ apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ include "n8n.fullname" . }}-postgres - labels: - {{- include "n8n.labels" . | nindent 4 }} data: DATABASE: "{{ .Values.postgres.database}}" HOST: "{{ include "n8n.fullname" . }}-postgres" PORT: "5432" +kind: ConfigMap +metadata: + labels: + {{ include "n8n.labels" . | nindent 4 }} + name: {{ include "n8n.fullname" . }}-postgres diff --git a/charts/n8n/templates/deployment-n8n.yaml b/charts/n8n/templates/deployment-n8n.yaml index d58ec0f..cb607ad 100644 --- a/charts/n8n/templates/deployment-n8n.yaml +++ b/charts/n8n/templates/deployment-n8n.yaml @@ -2,14 +2,14 @@ apiVersion: apps/v1 kind: Deployment metadata: labels: - {{- include "n8n.labels" . | nindent 4 }} + {{ include "n8n.labels" . | nindent 4 }} name: {{ include "n8n.fullname" . }}-n8n spec: replicas: 1 selector: matchLabels: deployment: n8n - {{- include "n8n.selectorLabels" . | nindent 6 }} + {{ include "n8n.selectorLabels" . | nindent 6 }} strategy: rollingUpdate: maxSurge: 0 @@ -19,7 +19,7 @@ spec: metadata: labels: deployment: n8n - {{- include "n8n.selectorLabels" . | nindent 8 }} + {{ include "n8n.selectorLabels" . | nindent 8 }} spec: containers: - env: diff --git a/charts/n8n/templates/ingress-n8n.yaml b/charts/n8n/templates/ingress-n8n.yaml index c0504b3..b1360da 100644 --- a/charts/n8n/templates/ingress-n8n.yaml +++ b/charts/n8n/templates/ingress-n8n.yaml @@ -1,11 +1,11 @@ -{{- if .Values.ingress.enabled }} +{{ if .Values.ingress.enabled }} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: - {{- toYaml .Values.ingress.annotations | nindent 4 }} + {{ toYaml .Values.ingress.annotations | nindent 4 }} labels: - {{- include "n8n.labels" . | nindent 4 }} + {{ include "n8n.labels" . | nindent 4 }} name: {{ include "n8n.fullname" . }}-n8n spec: rules: @@ -24,8 +24,8 @@ spec: {{ end }} tls: - hosts: - {{- range .Values.ingress.hosts }} + {{ range .Values.ingress.hosts }} - {{ . }} - {{- end }} + {{ end }} secretName: {{ include "n8n.fullname" . }}-n8n-tls -{{- end }} +{{ end }} diff --git a/charts/n8n/templates/secret-postgres.yaml b/charts/n8n/templates/secret-postgres.yaml index bc5cce4..aba7701 100644 --- a/charts/n8n/templates/secret-postgres.yaml +++ b/charts/n8n/templates/secret-postgres.yaml @@ -1,11 +1,11 @@ {{ if .Values.postgres.enabled }} apiVersion: v1 +data: + PASSWORD: {{ required "A valid .Values.postgres.password is required" .Values.postgres.password | b64enc }} + USER: {{ required "A valid .Values.postgres.user is required" .Values.postgres.user | b64enc }} kind: Secret metadata: labels: {{- include "n8n.labels" . | nindent 4 }} name: {{ include "n8n.fullname" . }}-postgres -data: - PASSWORD: {{ required "A valid .Values.postgres.password is required" .Values.postgres.password | b64enc }} - USER: {{ required "A valid .Values.postgres.user is required" .Values.postgres.user | b64enc }} {{ end }} diff --git a/charts/n8n/templates/service-n8n.yaml b/charts/n8n/templates/service-n8n.yaml index 6620c96..1e58759 100644 --- a/charts/n8n/templates/service-n8n.yaml +++ b/charts/n8n/templates/service-n8n.yaml @@ -1,16 +1,16 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "n8n.fullname" . }}-n8n labels: - {{- include "n8n.labels" . | nindent 4 }} + {{ include "n8n.labels" . | nindent 4 }} + name: {{ include "n8n.fullname" . }}-n8n spec: - type: ClusterIP - selector: - deployment: n8n - {{- include "n8n.selectorLabels" . | nindent 4 }} ports: - name: http port: 5678 protocol: TCP targetPort: 5678 + selector: + deployment: n8n + {{ include "n8n.selectorLabels" . | nindent 4 }} + type: ClusterIP diff --git a/charts/n8n/templates/service-postgres.yaml b/charts/n8n/templates/service-postgres.yaml index db0b1bd..ce6c9f6 100644 --- a/charts/n8n/templates/service-postgres.yaml +++ b/charts/n8n/templates/service-postgres.yaml @@ -1,16 +1,16 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "n8n.fullname" . }}-postgres labels: - {{- include "n8n.labels" . | nindent 4 }} + {{ include "n8n.labels" . | nindent 4 }} + name: {{ include "n8n.fullname" . }}-postgres spec: - type: ClusterIP - selector: - statefulSet: postgres - {{- include "n8n.selectorLabels" . | nindent 4 }} ports: - name: postgres port: 5432 protocol: TCP targetPort: 5432 + selector: + statefulSet: postgres + {{ include "n8n.selectorLabels" . | nindent 4 }} + type: ClusterIP diff --git a/charts/n8n/templates/statefulset-postgres.yaml b/charts/n8n/templates/statefulset-postgres.yaml index d53438a..b037bab 100644 --- a/charts/n8n/templates/statefulset-postgres.yaml +++ b/charts/n8n/templates/statefulset-postgres.yaml @@ -3,19 +3,19 @@ apiVersion: apps/v1 kind: StatefulSet metadata: labels: - {{- include "n8n.labels" . | nindent 4 }} + {{ include "n8n.labels" . | nindent 4 }} name: {{ include "n8n.fullname" . }}-postgres spec: selector: matchLabels: statefulSet: postgres - {{- include "n8n.selectorLabels" . | nindent 6 }} + {{ include "n8n.selectorLabels" . | nindent 6 }} serviceName: postgres-hl template: metadata: labels: statefulSet: postgres - {{- include "n8n.selectorLabels" . | nindent 8 }} + {{ include "n8n.selectorLabels" . | nindent 8 }} name: postgres spec: containers: @@ -40,7 +40,7 @@ spec: optional: false image: {{ .Values.postgres.image.repository }}:{{ .Values.postgres.image.tag }} name: postgres - resources: {{- toYaml .Values.postgres.resources | nindent 10 }} + resources: {{ toYaml .Values.postgres.resources | nindent 10 }} volumeMounts: - mountPath: /var/lib/postgresql/data name: data @@ -60,4 +60,4 @@ spec: requests: storage: 10Gi volumeMode: Filesystem -{{ end}} +{{ end }}