Add GPU and (USB) Devices to custom-app
Remove pre-configured /config PVC
This commit is contained in:
@@ -19,4 +19,4 @@ name: custom-app
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/truecharts/apps/tree/master/charts/stable/custom-app
|
- https://github.com/truecharts/apps/tree/master/charts/stable/custom-app
|
||||||
type: application
|
type: application
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
|
|||||||
@@ -514,160 +514,6 @@ questions:
|
|||||||
min: 9000
|
min: 9000
|
||||||
max: 65535
|
max: 65535
|
||||||
|
|
||||||
- variable: persistence
|
|
||||||
label: "Integrated Persistent Storage"
|
|
||||||
group: "Storage and Persistence"
|
|
||||||
schema:
|
|
||||||
type: dict
|
|
||||||
attrs:
|
|
||||||
- variable: config
|
|
||||||
label: "App Config Storage"
|
|
||||||
description: "Stores the Application Configuration."
|
|
||||||
schema:
|
|
||||||
type: dict
|
|
||||||
attrs:
|
|
||||||
- variable: enabled
|
|
||||||
label: "Enable the storage"
|
|
||||||
schema:
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
- variable: type
|
|
||||||
label: "(Advanced) Type of Storage"
|
|
||||||
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) 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
|
|
||||||
- variable: hostPath
|
|
||||||
label: "hostPath"
|
|
||||||
description: "Path inside the container the storage is mounted"
|
|
||||||
schema:
|
|
||||||
show_if: [["type", "=", "hostPath"]]
|
|
||||||
type: hostpath
|
|
||||||
- variable: hostPathType
|
|
||||||
label: "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"
|
|
||||||
- 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 PV"
|
|
||||||
schema:
|
|
||||||
show_if: [["type", "=", "pvc"]]
|
|
||||||
type: string
|
|
||||||
default: "ReadWriteOnce"
|
|
||||||
enum:
|
|
||||||
- value: "ReadWriteOnce"
|
|
||||||
description: "ReadWriteOnce"
|
|
||||||
- value: "ReadOnlyMany"
|
|
||||||
description: "ReadOnlyMany"
|
|
||||||
- value: "ReadWriteMany"
|
|
||||||
description: "ReadWriteMany"
|
|
||||||
- variable: size
|
|
||||||
label: "Size quotum of storage"
|
|
||||||
schema:
|
|
||||||
show_if: [["type", "=", "pvc"]]
|
|
||||||
type: string
|
|
||||||
default: "100Gi"
|
|
||||||
- variable: persistenceList
|
- variable: persistenceList
|
||||||
label: "Additional app storage"
|
label: "Additional app storage"
|
||||||
group: "Storage and Persistence"
|
group: "Storage and Persistence"
|
||||||
@@ -1219,6 +1065,57 @@ questions:
|
|||||||
description: "OnRootMismatch"
|
description: "OnRootMismatch"
|
||||||
- value: "Always"
|
- value: "Always"
|
||||||
description: "Always"
|
description: "Always"
|
||||||
|
|
||||||
|
- variable: scaleGPU
|
||||||
|
label: "GPU Configuration"
|
||||||
|
group: "Resources and Devices"
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
$ref:
|
||||||
|
- "definitions/gpuConfiguration"
|
||||||
|
attrs: []
|
||||||
|
|
||||||
|
- variable: deviceList
|
||||||
|
label: "Mount (USB) devices"
|
||||||
|
group: "Resources and Devices"
|
||||||
|
schema:
|
||||||
|
type: list
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
- variable: deviceListEntry
|
||||||
|
label: "Device"
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: enabled
|
||||||
|
label: "Enable the storage"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
- variable: type
|
||||||
|
label: "(Advanced) Type of Storage"
|
||||||
|
description: "Sets the persistence type"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "hostPath"
|
||||||
|
hidden: true
|
||||||
|
- variable: readOnly
|
||||||
|
label: "readOnly"
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
- variable: hostPath
|
||||||
|
label: "Host Device Path"
|
||||||
|
description: "Path to the device on the host system"
|
||||||
|
schema:
|
||||||
|
type: path
|
||||||
|
- variable: mountPath
|
||||||
|
label: "Container Device Path"
|
||||||
|
description: "Path inside the container the device is mounted"
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "/dev/ttyACM0"
|
||||||
|
|
||||||
- variable: resources
|
- variable: resources
|
||||||
group: "Resources and Devices"
|
group: "Resources and Devices"
|
||||||
label: "Resource Limits"
|
label: "Resource Limits"
|
||||||
|
|||||||
Reference in New Issue
Block a user