From 8c7e3e9a47ea591a5c12f79d4b1b50bd3c212292 Mon Sep 17 00:00:00 2001 From: StevenMcElligott <89483932+StevenMcElligott@users.noreply.github.com> Date: Fri, 25 Feb 2022 05:13:10 -0500 Subject: [PATCH] Added missing folder to Omada (#1963) * Added missing folder to Omada Omada-controller needs a /work folder or else it's configurations don't persist after starting/stopping the container * Update questions.yaml * Update questions.yaml * Update charts/incubator/omada-controller/questions.yaml Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- charts/incubator/omada-controller/Chart.yaml | 2 +- .../incubator/omada-controller/questions.yaml | 43 +++++++++++++++++++ charts/incubator/omada-controller/values.yaml | 3 ++ 3 files changed, 47 insertions(+), 1 deletion(-) diff --git a/charts/incubator/omada-controller/Chart.yaml b/charts/incubator/omada-controller/Chart.yaml index 5ab7d7429d0..65772c4dbe1 100644 --- a/charts/incubator/omada-controller/Chart.yaml +++ b/charts/incubator/omada-controller/Chart.yaml @@ -18,7 +18,7 @@ name: omada-controller sources: - https://github.com/mbentley/docker-omada-controller - https://github.com/truecharts/apps/tree/master/charts/omada-controller -version: 4.0.67 +version: 4.0.68 annotations: truecharts.org/catagories: | - media diff --git a/charts/incubator/omada-controller/questions.yaml b/charts/incubator/omada-controller/questions.yaml index 30b8735d56d..4612392aebe 100644 --- a/charts/incubator/omada-controller/questions.yaml +++ b/charts/incubator/omada-controller/questions.yaml @@ -529,6 +529,49 @@ questions: description: "Default" - value: "Memory" description: "Memory" +# Include{persistenceAdvanced} + - variable: work + label: "App working Storage" + description: "Stores the Application data between resets." + 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} # Include{persistenceList} diff --git a/charts/incubator/omada-controller/values.yaml b/charts/incubator/omada-controller/values.yaml index 417f008f58e..d761bfbf683 100644 --- a/charts/incubator/omada-controller/values.yaml +++ b/charts/incubator/omada-controller/values.yaml @@ -61,3 +61,6 @@ persistence: data: enabled: true mountPath: "/data" + work: + enabled: true + mountPath: "/work"