From 9d19dd0d64228bc0f2afd7c9ce28853523350542 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Fri, 17 Dec 2021 15:55:06 +0200 Subject: [PATCH] fix(paperless-ng): app needs r/w access to rootfs (#1549) * fix(paperless-ng): app needs r/w access to rootfs * bump patch * chore(tdarr): simplify hostPath GUI --- charts/incubator/tdarr-node/Chart.yaml | 2 +- charts/incubator/tdarr-node/questions.yaml | 15 +++-- charts/incubator/tdarr/Chart.yaml | 2 +- charts/incubator/tdarr/questions.yaml | 74 ++++------------------ charts/stable/paperless-ng/Chart.yaml | 2 +- charts/stable/paperless-ng/questions.yaml | 58 ++++++++++++++++- charts/stable/paperless-ng/values.yaml | 4 ++ 7 files changed, 86 insertions(+), 71 deletions(-) diff --git a/charts/incubator/tdarr-node/Chart.yaml b/charts/incubator/tdarr-node/Chart.yaml index f3921245359..cc5f514d33b 100644 --- a/charts/incubator/tdarr-node/Chart.yaml +++ b/charts/incubator/tdarr-node/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/HaveAGitGat/Tdarr - https://hub.docker.com/r/haveagitgat/tdarr_node type: application -version: 1.0.25 +version: 1.0.26 annotations: truecharts.org/catagories: | - media diff --git a/charts/incubator/tdarr-node/questions.yaml b/charts/incubator/tdarr-node/questions.yaml index 226862c3c45..f8fd25850a4 100644 --- a/charts/incubator/tdarr-node/questions.yaml +++ b/charts/incubator/tdarr-node/questions.yaml @@ -333,17 +333,22 @@ questions: schema: type: boolean default: true + hidden: true - variable: type - label: "(Advanced) Type of Storage" - description: "Sets the persistence type" + label: "Type of Storage" + description: "Sets the persistence type, Anything other than PVC could break rollback!" schema: type: string - default: "hostPath" + default: "simpleHP" enum: - - value: "pvc" - description: "pvc" + - value: "simplePVC" + description: "PVC (simple)" + - value: "simpleHP" + description: "HostPath (simple)" - value: "emptyDir" description: "emptyDir" + - value: "pvc" + description: "pvc" - value: "hostPath" description: "hostPath" # Include{persistenceBasic} diff --git a/charts/incubator/tdarr/Chart.yaml b/charts/incubator/tdarr/Chart.yaml index 1e7d9abd79f..29caefae8ca 100644 --- a/charts/incubator/tdarr/Chart.yaml +++ b/charts/incubator/tdarr/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/HaveAGitGat/Tdarr - https://hub.docker.com/r/haveagitgat/tdarr type: application -version: 1.0.25 +version: 1.0.26 annotations: truecharts.org/catagories: | - media diff --git a/charts/incubator/tdarr/questions.yaml b/charts/incubator/tdarr/questions.yaml index 2d094a69707..5f9e5a82e86 100644 --- a/charts/incubator/tdarr/questions.yaml +++ b/charts/incubator/tdarr/questions.yaml @@ -445,76 +445,25 @@ questions: schema: type: boolean default: true + hidden: true - variable: type - label: "(Advanced) Type of Storage" - description: "Sets the persistence type" + label: "Type of Storage" + description: "Sets the persistence type, Anything other than PVC could break rollback!" schema: type: string - default: "hostPath" + default: "simpleHP" enum: - - value: "pvc" - description: "pvc" + - value: "simplePVC" + description: "PVC (simple)" + - value: "simpleHP" + description: "HostPath (simple)" - value: "emptyDir" description: "emptyDir" + - value: "pvc" + description: "pvc" - value: "hostPath" description: "hostPath" - - variable: storageClass - label: "(Advanced) storageClass" - description: " Warning: Anything other than SCALE-ZFS will break rollback!" - schema: - show_if: [["type", "=", "pvc"]] - type: string - default: "SCALE-ZFS" - - variable: labelsList - label: "Labels" - schema: - type: list - default: [] - items: - - variable: labelItem - label: "Label" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - variable: annotationsList - label: "Annotations" - schema: - type: list - default: [] - items: - - variable: annotationItem - label: "Label" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - variable: setPermissions - label: "Automatic Permissions" - description: "Automatically set permissions on install" - schema: - show_if: [["type", "=", "hostPath"]] - type: boolean - default: true - - variable: readOnly - label: "readOnly" - schema: - type: boolean - default: false +# Include{persistenceBasic} - variable: hostPath label: "hostPath" description: "Path inside the container the storage is mounted" @@ -542,6 +491,7 @@ questions: - value: "Memory" description: "Memory" # Include{persistenceAdvanced} + # Include{persistenceList} - variable: ingress diff --git a/charts/stable/paperless-ng/Chart.yaml b/charts/stable/paperless-ng/Chart.yaml index 0167cceafed..60afa650cf7 100644 --- a/charts/stable/paperless-ng/Chart.yaml +++ b/charts/stable/paperless-ng/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 kubeVersion: ">=1.16.0-0" name: paperless-ng -version: 0.0.3 +version: 0.0.4 appVersion: "1.5.0" description: Paperless-ng is an application by Daniel Quinn and contributors that indexes your scanned documents. type: application diff --git a/charts/stable/paperless-ng/questions.yaml b/charts/stable/paperless-ng/questions.yaml index fe4d9f76479..454e519a0ac 100644 --- a/charts/stable/paperless-ng/questions.yaml +++ b/charts/stable/paperless-ng/questions.yaml @@ -231,6 +231,62 @@ questions: description: "Default" - value: "Memory" description: "Memory" +# Include{persistenceAdvanced} + - variable: data + label: "App Data Storage" + description: "Stores the Data." + schema: + type: dict + attrs: + - variable: enabled + label: "Enable the storage" + schema: + type: boolean + default: true + hidden: true + - variable: type + label: "Type of Storage" + description: "Sets the persistence type, Anything other than PVC could break rollback!" + schema: + type: string + default: "simpleHP" + 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: mountPath + label: "mountPath" + description: "Path inside the container the storage is mounted" + schema: + type: string + default: "/data" + hidden: true + valid_chars: '^\/([a-zA-Z0-9._-]+(\s?[a-zA-Z0-9._-]+|\/?))+$' + - 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} @@ -277,7 +333,7 @@ questions: label: "ReadOnly Root Filesystem" schema: type: boolean - default: true + default: false - variable: allowPrivilegeEscalation label: "Allow Privilege Escalation" schema: diff --git a/charts/stable/paperless-ng/values.yaml b/charts/stable/paperless-ng/values.yaml index 6c776e5ea9d..cc92a036200 100644 --- a/charts/stable/paperless-ng/values.yaml +++ b/charts/stable/paperless-ng/values.yaml @@ -5,6 +5,7 @@ image: securityContext: runAsNonRoot: false + readOnlyRootFilesystem: false podSecurityContext: runAsUser: 0 @@ -24,5 +25,8 @@ persistence: config: enabled: true mountPath: "/config" + data: + enabled: true + mountPath: "/data" varrun: enabled: true