2021-09-13 09:12:18 +00:00
|
|
|
- variable: persistenceList
|
|
|
|
label: "Additional app storage"
|
|
|
|
group: "Storage and Persistence"
|
|
|
|
schema:
|
|
|
|
type: list
|
|
|
|
default: []
|
|
|
|
items:
|
|
|
|
- variable: persistenceListEntry
|
|
|
|
label: "Custom Storage"
|
|
|
|
schema:
|
2022-01-21 00:35:59 +00:00
|
|
|
additional_attrs: true
|
2021-09-13 09:12:18 +00:00
|
|
|
type: dict
|
|
|
|
attrs:
|
|
|
|
- variable: enabled
|
|
|
|
label: "Enable the storage"
|
|
|
|
schema:
|
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
hidden: true
|
2021-11-07 10:49:14 +00:00
|
|
|
- variable: name
|
|
|
|
label: "Name (optional)"
|
|
|
|
description: "Not required, please set to config when mounting /config or temp when mounting /tmp"
|
|
|
|
schema:
|
|
|
|
type: string
|
2021-09-13 09:12:18 +00:00
|
|
|
- variable: type
|
2021-11-06 15:38:54 +00:00
|
|
|
label: "Type of Storage"
|
2021-11-06 16:01:08 +00:00
|
|
|
description: "Sets the persistence type, Anything other than PVC could break rollback!"
|
2021-09-13 09:12:18 +00:00
|
|
|
schema:
|
|
|
|
type: string
|
2021-11-06 15:38:54 +00:00
|
|
|
default: "simpleHP"
|
2021-09-13 09:12:18 +00:00
|
|
|
enum:
|
2021-11-06 15:38:54 +00:00
|
|
|
- value: "simplePVC"
|
|
|
|
description: "PVC (simple)"
|
|
|
|
- value: "simpleHP"
|
|
|
|
description: "HostPath (simple)"
|
2021-09-13 09:12:18 +00:00
|
|
|
- value: "emptyDir"
|
|
|
|
description: "emptyDir"
|
2021-11-06 15:38:54 +00:00
|
|
|
- value: "pvc"
|
|
|
|
description: "pvc"
|
2021-09-13 09:12:18 +00:00
|
|
|
- value: "hostPath"
|
|
|
|
description: "hostPath"
|
2022-06-05 14:59:11 +00:00
|
|
|
- value: "nfs"
|
|
|
|
description: "NFS Share"
|
|
|
|
- variable: server
|
|
|
|
label: "NFS server"
|
|
|
|
schema:
|
|
|
|
show_if: [["type", "=", "nfs"]]
|
|
|
|
type: string
|
|
|
|
default: ""
|
|
|
|
- variable: path
|
|
|
|
label: "Path on NFS server"
|
|
|
|
schema:
|
|
|
|
show_if: [["type", "=", "nfs"]]
|
|
|
|
type: string
|
|
|
|
default: ""
|
2021-11-06 17:56:41 +00:00
|
|
|
- variable: setPermissionsSimple
|
|
|
|
label: "Automatic Permissions"
|
|
|
|
description: "Automatically set permissions on install"
|
|
|
|
schema:
|
|
|
|
show_if: [["type", "=", "simpleHP"]]
|
|
|
|
type: boolean
|
|
|
|
default: true
|
2021-09-13 09:12:18 +00:00
|
|
|
- variable: setPermissions
|
|
|
|
label: "Automatic Permissions"
|
|
|
|
description: "Automatically set permissions on install"
|
|
|
|
schema:
|
2021-11-06 17:56:41 +00:00
|
|
|
show_if: [["type", "=", "hostPath"]]
|
2021-09-13 09:12:18 +00:00
|
|
|
type: boolean
|
|
|
|
default: true
|
|
|
|
- variable: readOnly
|
|
|
|
label: "readOnly"
|
|
|
|
schema:
|
|
|
|
type: boolean
|
|
|
|
default: false
|
2021-11-06 17:56:41 +00:00
|
|
|
- variable: hostPathSimple
|
|
|
|
label: "hostPath"
|
|
|
|
description: "Path inside the container the storage is mounted"
|
|
|
|
schema:
|
|
|
|
show_if: [["type", "=", "simpleHP"]]
|
|
|
|
type: hostpath
|
2021-09-13 09:12:18 +00:00
|
|
|
- variable: hostPath
|
|
|
|
label: "hostPath"
|
|
|
|
description: "Path inside the container the storage is mounted"
|
|
|
|
schema:
|
2021-11-06 17:56:41 +00:00
|
|
|
show_if: [["type", "=", "hostPath"]]
|
2021-09-13 09:12:18 +00:00
|
|
|
type: hostpath
|
2021-11-06 15:38:54 +00:00
|
|
|
- variable: mountPath
|
|
|
|
label: "mountPath"
|
|
|
|
description: "Path inside the container the storage is mounted"
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
default: ""
|
|
|
|
required: true
|
2021-11-10 21:14:55 +00:00
|
|
|
valid_chars: '^\/([a-zA-Z0-9._-]+(\s?[a-zA-Z0-9._-]+|\/?))+$'
|
2021-11-06 15:38:54 +00:00
|
|
|
- variable: medium
|
|
|
|
label: "EmptyDir Medium"
|
|
|
|
schema:
|
|
|
|
show_if: [["type", "=", "emptyDir"]]
|
|
|
|
type: string
|
|
|
|
default: ""
|
|
|
|
enum:
|
|
|
|
- value: ""
|
|
|
|
description: "Default"
|
|
|
|
- value: "Memory"
|
|
|
|
description: "Memory"
|
|
|
|
- variable: size
|
|
|
|
label: "Size quotum of storage"
|
|
|
|
schema:
|
2021-11-06 17:56:41 +00:00
|
|
|
show_if: [["type", "=", "pvc"]]
|
2021-11-06 15:38:54 +00:00
|
|
|
type: string
|
2021-11-06 17:56:41 +00:00
|
|
|
default: "999Gi"
|
2021-09-13 09:12:18 +00:00
|
|
|
- variable: hostPathType
|
|
|
|
label: "(Advanced) hostPath Type"
|
|
|
|
schema:
|
|
|
|
show_if: [["type", "=", "hostPath"]]
|
|
|
|
type: string
|
|
|
|
default: ""
|
|
|
|
enum:
|
|
|
|
- value: ""
|
|
|
|
description: "Default"
|
|
|
|
- value: "DirectoryOrCreate"
|
|
|
|
description: "DirectoryOrCreate"
|
|
|
|
- value: "Directory"
|
|
|
|
description: "Directory"
|
|
|
|
- value: "FileOrCreate"
|
|
|
|
description: "FileOrCreate"
|
|
|
|
- value: "File"
|
|
|
|
description: "File"
|
|
|
|
- value: "Socket"
|
|
|
|
description: "Socket"
|
|
|
|
- value: "CharDevice"
|
|
|
|
description: "CharDevice"
|
|
|
|
- value: "BlockDevice"
|
|
|
|
description: "BlockDevice"
|
2021-11-06 15:38:54 +00:00
|
|
|
- variable: storageClass
|
|
|
|
label: "(Advanced) storageClass"
|
|
|
|
description: "Warning: Anything other than SCALE-ZFS or empty will break rollback!"
|
2021-09-13 09:12:18 +00:00
|
|
|
schema:
|
2021-11-06 15:38:54 +00:00
|
|
|
show_if: [["type", "=", "pvc"]]
|
2021-09-13 09:12:18 +00:00
|
|
|
type: string
|
2021-11-06 15:38:54 +00:00
|
|
|
default: "SCALE-ZFS"
|
2021-09-13 09:12:18 +00:00
|
|
|
- variable: accessMode
|
|
|
|
label: "(Advanced) Access Mode"
|
|
|
|
description: "Allow or disallow multiple PVC's writhing to the same PV"
|
|
|
|
schema:
|
|
|
|
show_if: [["type", "=", "pvc"]]
|
|
|
|
type: string
|
|
|
|
default: "ReadWriteOnce"
|
|
|
|
enum:
|
|
|
|
- value: "ReadWriteOnce"
|
|
|
|
description: "ReadWriteOnce"
|
|
|
|
- value: "ReadOnlyMany"
|
|
|
|
description: "ReadOnlyMany"
|
|
|
|
- value: "ReadWriteMany"
|
|
|
|
description: "ReadWriteMany"
|
2021-11-06 15:38:54 +00:00
|
|
|
- variable: advanced
|
|
|
|
label: "Show Advanced Options"
|
2021-09-13 09:12:18 +00:00
|
|
|
schema:
|
2021-11-06 15:38:54 +00:00
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
show_subquestions_if: true
|
|
|
|
subquestions:
|
|
|
|
- variable: labelsList
|
|
|
|
label: "Labels"
|
|
|
|
schema:
|
|
|
|
type: list
|
|
|
|
default: []
|
|
|
|
items:
|
|
|
|
- variable: labelItem
|
|
|
|
label: "Label"
|
|
|
|
schema:
|
2022-01-21 00:35:59 +00:00
|
|
|
additional_attrs: true
|
2021-11-06 15:38:54 +00:00
|
|
|
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:
|
2022-01-21 00:35:59 +00:00
|
|
|
additional_attrs: true
|
2021-11-06 15:38:54 +00:00
|
|
|
type: dict
|
|
|
|
attrs:
|
|
|
|
- variable: name
|
|
|
|
label: "Name"
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
- variable: value
|
|
|
|
label: "Value"
|
|
|
|
schema:
|
|
|
|
type: string
|