From acbe9516820f13592be6b2adeadd803762ad99d7 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Fri, 11 Jun 2021 00:07:46 +0200 Subject: [PATCH] initial prototype of new storage GUI design --- charts/develop/prototype-gui/Chart.yaml | 4 +- .../prototype-gui/SCALE/questions.yaml | 168 +++++++++++------- 2 files changed, 107 insertions(+), 65 deletions(-) diff --git a/charts/develop/prototype-gui/Chart.yaml b/charts/develop/prototype-gui/Chart.yaml index 6b70cedeb86..4f56619c231 100644 --- a/charts/develop/prototype-gui/Chart.yaml +++ b/charts/develop/prototype-gui/Chart.yaml @@ -3,7 +3,7 @@ appVersion: auto dependencies: - name: common repository: https://truecharts.org/ - version: 5.1.3 + version: 6.0.0 deprecated: false description: App to test GUI prototypes home: https://github.com/truecharts/apps/tree/master/charts/develop/prototype-gui @@ -19,4 +19,4 @@ maintainers: name: prototype-gui sources: null type: application -version: 0.0.14 +version: 1.0.0 diff --git a/charts/develop/prototype-gui/SCALE/questions.yaml b/charts/develop/prototype-gui/SCALE/questions.yaml index 25e1fa3f992..1503137c01b 100644 --- a/charts/develop/prototype-gui/SCALE/questions.yaml +++ b/charts/develop/prototype-gui/SCALE/questions.yaml @@ -256,12 +256,39 @@ questions: schema: type: boolean default: true + - variable: type + label: "Storage Type" + description: "Sets the persistence type" + schema: + type: string + default: "pvc" + enum: + - value: "pvc" + description: "pvc" + - value: "emptyDir" + description: "emptyDir" + - value: "hostPath" + description: "hostPath" - variable: storageClass label: "(Advanced) Type of Storage" description: " Warning: Anything other than SCALE-ZFS will break rollback!" schema: + show_if: [["type", "=", "pvc"]] type: string default: "SCALE-ZFS" + - variable: setPermissions + label: "Automatic Permissions" + description: "Automatically set permissions on install" + schema: + show_if: [["type", "=", "hostPath"]] + type: boolean + default: true + - 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" @@ -269,32 +296,22 @@ questions: type: string default: "/config" hidden: true - - variable: emptyDir - label: "EmptyDir Volume" + - variable: medium + label: "EmptyDir Medium" schema: - type: dict - attrs: - - variable: enabled - label: "(Advanced) Use emptyDir volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: medium - label: "EmptyDir Medium" - schema: - type: string - default: "" - enum: - - value: "" - description: "Default" - - value: "Memory" - description: "Memory" + show_if: [["type", "=", "emptyDir"]] + type: string + default: "" + enum: + - value: "" + description: "Default" + - value: "Memory" + description: "Memory" - variable: accessMode label: "Access Mode (Advanced)" - description: "Allow or disallow multiple PVC's writhing to the same PVC" + description: "Allow or disallow multiple PVC's writhing to the same PV" schema: + show_if: [["type", "=", "pvc"]] type: string default: "ReadWriteOnce" enum: @@ -305,74 +322,99 @@ questions: - value: "ReadWriteMany" description: "ReadWriteMany" - variable: size + show_if: [["type", "=", "pvc"]] label: "Size quotum of storage" schema: type: string default: "100Gi" - - variable: hostPathMounts + - variable: persistenceList label: "Custom app storage" group: "Storage and Persistence" schema: type: list default: [] items: - - variable: volumeMount + - variable: persistenceListEntry label: "Custom Storage" schema: type: dict attrs: - variable: enabled - label: "Enabled" + label: "Enable the storage" schema: type: boolean default: true - hidden: true + - variable: type + label: "Storage Type" + description: "Sets the persistence type" + schema: + type: string + default: "pvc" + enum: + - value: "pvc" + description: "pvc" + - value: "emptyDir" + description: "emptyDir" + - value: "hostPath" + description: "hostPath" + - variable: storageClass + label: "(Advanced) Type of Storage" + description: " Warning: Anything other than SCALE-ZFS will break rollback!" + schema: + show_if: [["type", "=", "pvc"]] + type: string + default: "SCALE-ZFS" - variable: setPermissions label: "Automatic Permissions" description: "Automatically set permissions on install" schema: + show_if: [["type", "=", "hostPath"]] type: boolean default: true - - variable: readOnly - label: "Mount as ReadOnly" - description: "prevent any write from being done to the mounted volume" - schema: - type: boolean - default: false - - variable: emptyDir - label: "EmptyDir Volume" - schema: - type: dict - attrs: - - variable: enabled - label: "(Advanced) Use emptyDir volume" - schema: - type: boolean - default: false - - variable: medium - label: "EmptyDir Medium" - schema: - type: string - default: "" - enum: - - value: "" - description: "Default" - - value: "Memory" - description: "Memory" - - variable: mountPath - label: "Mount Path" - description: "Path to mount inside the pod" - schema: - type: path - required: true - default: "" - editable: true - variable: hostPath - label: "Host Path" - description: "Path on the host to mount inside the container, ignored when emptyDir is enabled" + label: "hostPath" + description: "Path inside the container the storage is mounted" schema: + show_if: [["type", "=", "hostPath"]] type: hostpath - required: true + - variable: mountPath + label: "mountPath" + description: "Path inside the container the storage is mounted" + schema: + type: string + default: "/config" + hidden: true + - variable: medium + label: "EmptyDir Medium" + schema: + show_if: [["type", "=", "emptyDir"]] + type: string + default: "" + enum: + - value: "" + description: "Default" + - value: "Memory" + description: "Memory" + - variable: accessMode + label: "Access Mode (Advanced)" + description: "Allow or disallow multiple PVC's writhing to the same PVC" + schema: + show_if: [["type", "=", "pvc"]] + type: string + default: "ReadWriteOnce" + enum: + - value: "ReadWriteOnce" + description: "ReadWriteOnce" + - value: "ReadOnlyMany" + description: "ReadOnlyMany" + - value: "ReadWriteMany" + description: "ReadWriteMany" + - variable: size + show_if: [["type", "=", "pvc"]] + label: "Size quotum of storage" + schema: + type: string + default: "100Gi" - variable: ingress label: ""