From 80d579aacf68df2c092283d721871fd069d3fb92 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 28 Jan 2022 22:25:38 +0200 Subject: [PATCH] fix(n8n): Fix default value on some lists (#1806) * fix(n8n): Fix default value on some lists * app's config and user data is on diff dirs. Only userdata is configurable * bump --- charts/incubator/n8n/Chart.yaml | 2 +- charts/incubator/n8n/questions.yaml | 48 +++++++++++++++++++++++++++-- charts/incubator/n8n/values.yaml | 3 ++ 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/charts/incubator/n8n/Chart.yaml b/charts/incubator/n8n/Chart.yaml index afa2446c0cf..a51375311c9 100644 --- a/charts/incubator/n8n/Chart.yaml +++ b/charts/incubator/n8n/Chart.yaml @@ -28,7 +28,7 @@ sources: - https://docs.n8n.io/ - https://github.com/n8n-io/n8n - https://hub.docker.com/r/n8nio/n8n -version: 0.0.2 +version: 0.0.3 annotations: truecharts.org/catagories: | - media diff --git a/charts/incubator/n8n/questions.yaml b/charts/incubator/n8n/questions.yaml index b9b3f67c154..06cfacfed21 100644 --- a/charts/incubator/n8n/questions.yaml +++ b/charts/incubator/n8n/questions.yaml @@ -430,7 +430,7 @@ questions: description: "Log output level" schema: type: string - default: "Default" + default: "" enum: - value: "" description: "Default" @@ -449,7 +449,7 @@ questions: description: "Where to output logs" schema: type: string - default: "Default" + default: "" enum: - value: "" description: "Default" @@ -561,6 +561,49 @@ questions: additional_attrs: true type: dict attrs: + - variable: config + label: "App Config Storage" + description: "Stores the Application Config." + schema: + additional_attrs: true + type: dict + attrs: + - variable: type + label: "Type of Storage" + description: "Sets the persistence type, Anything other than PVC could break rollback!" + schema: + type: string + default: "simplePVC" + enum: + - value: "simplePVC" + description: "PVC (simple)" + - value: "simpleHP" + description: "HostPath (simple)" + - value: "emptyDir" + description: "emptyDir" + - value: "pvc" + description: "pvc" + - value: "hostPath" + description: "hostPath" +# Include{persistenceBasic} + - variable: hostPath + label: "hostPath" + description: "Path inside the container the storage is mounted" + schema: + show_if: [["type", "=", "hostPath"]] + type: hostpath + - variable: medium + label: "EmptyDir Medium" + schema: + show_if: [["type", "=", "emptyDir"]] + type: string + default: "" + enum: + - value: "" + description: "Default" + - value: "Memory" + description: "Memory" +# Include{persistenceAdvanced} - variable: data label: "App Data Storage" description: "Stores the Application Data." @@ -604,7 +647,6 @@ questions: - value: "Memory" description: "Memory" # Include{persistenceAdvanced} - # Include{persistenceList} - variable: ingress diff --git a/charts/incubator/n8n/values.yaml b/charts/incubator/n8n/values.yaml index 12997d2886e..0b3ad55fa42 100644 --- a/charts/incubator/n8n/values.yaml +++ b/charts/incubator/n8n/values.yaml @@ -109,6 +109,9 @@ service: targetPort: 5678 persistence: + config: + enabled: true + mountPath: "/home/node/.n8n" data: enabled: true mountPath: "/data"