initial prototype of new storage GUI design

This commit is contained in:
kjeld Schouten-Lebbing
2021-06-11 00:11:01 +02:00
parent 01143d03e0
commit acbe951682
2 changed files with 107 additions and 65 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ appVersion: auto
dependencies: dependencies:
- name: common - name: common
repository: https://truecharts.org/ repository: https://truecharts.org/
version: 5.1.3 version: 6.0.0
deprecated: false deprecated: false
description: App to test GUI prototypes description: App to test GUI prototypes
home: https://github.com/truecharts/apps/tree/master/charts/develop/prototype-gui home: https://github.com/truecharts/apps/tree/master/charts/develop/prototype-gui
@@ -19,4 +19,4 @@ maintainers:
name: prototype-gui name: prototype-gui
sources: null sources: null
type: application type: application
version: 0.0.14 version: 1.0.0
+105 -63
View File
@@ -256,12 +256,39 @@ questions:
schema: schema:
type: boolean type: boolean
default: true 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 - variable: storageClass
label: "(Advanced) Type of Storage" label: "(Advanced) Type of Storage"
description: " Warning: Anything other than SCALE-ZFS will break rollback!" description: " Warning: Anything other than SCALE-ZFS will break rollback!"
schema: schema:
show_if: [["type", "=", "pvc"]]
type: string type: string
default: "SCALE-ZFS" 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 - variable: mountPath
label: "mountPath" label: "mountPath"
description: "Path inside the container the storage is mounted" description: "Path inside the container the storage is mounted"
@@ -269,32 +296,22 @@ questions:
type: string type: string
default: "/config" default: "/config"
hidden: true hidden: true
- variable: emptyDir - variable: medium
label: "EmptyDir Volume" label: "EmptyDir Medium"
schema: schema:
type: dict show_if: [["type", "=", "emptyDir"]]
attrs: type: string
- variable: enabled default: ""
label: "(Advanced) Use emptyDir volume" enum:
schema: - value: ""
type: boolean description: "Default"
default: false - value: "Memory"
show_subquestions_if: true description: "Memory"
subquestions:
- variable: medium
label: "EmptyDir Medium"
schema:
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
- variable: accessMode - variable: accessMode
label: "Access Mode (Advanced)" 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: schema:
show_if: [["type", "=", "pvc"]]
type: string type: string
default: "ReadWriteOnce" default: "ReadWriteOnce"
enum: enum:
@@ -305,74 +322,99 @@ questions:
- value: "ReadWriteMany" - value: "ReadWriteMany"
description: "ReadWriteMany" description: "ReadWriteMany"
- variable: size - variable: size
show_if: [["type", "=", "pvc"]]
label: "Size quotum of storage" label: "Size quotum of storage"
schema: schema:
type: string type: string
default: "100Gi" default: "100Gi"
- variable: hostPathMounts - variable: persistenceList
label: "Custom app storage" label: "Custom app storage"
group: "Storage and Persistence" group: "Storage and Persistence"
schema: schema:
type: list type: list
default: [] default: []
items: items:
- variable: volumeMount - variable: persistenceListEntry
label: "Custom Storage" label: "Custom Storage"
schema: schema:
type: dict type: dict
attrs: attrs:
- variable: enabled - variable: enabled
label: "Enabled" label: "Enable the storage"
schema: schema:
type: boolean type: boolean
default: true 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 - variable: setPermissions
label: "Automatic Permissions" label: "Automatic Permissions"
description: "Automatically set permissions on install" description: "Automatically set permissions on install"
schema: schema:
show_if: [["type", "=", "hostPath"]]
type: boolean type: boolean
default: true 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 - variable: hostPath
label: "Host Path" label: "hostPath"
description: "Path on the host to mount inside the container, ignored when emptyDir is enabled" description: "Path inside the container the storage is mounted"
schema: schema:
show_if: [["type", "=", "hostPath"]]
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 - variable: ingress
label: "" label: ""