feat(questions): add NFS server persistence GUI option and simplify persistence section

This commit is contained in:
Kjeld Schouten-Lebbing 2022-06-05 16:59:11 +02:00
parent 80b0beca20
commit 72ed0cda1c
No known key found for this signature in database
GPG Key ID: 3D586240A9175B99
2 changed files with 62 additions and 0 deletions

View File

@ -1,3 +1,34 @@
- variable: type
label: "Type of Storage"
description: "Sets the persistence type, Anything other than PVC could break rollback!"
schema:
type: string
default: "simplePVC"
enum:
- value: "simplePVC"
description: "PVC (simple)"
- value: "simpleHP"
description: "HostPath (simple)"
- value: "emptyDir"
description: "emptyDir"
- value: "pvc"
description: "pvc"
- value: "hostPath"
description: "hostPath"
- 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: ""
- variable: setPermissionsSimple
label: "Automatic Permissions"
description: "Automatically set permissions on install"
@ -23,3 +54,20 @@
schema:
show_if: [["type", "=", "simpleHP"]]
type: hostpath
- variable: hostPath
label: "hostPath"
description: "Path inside the container the storage is mounted"
schema:
show_if: [["type", "=", "hostPath"]]
type: hostpath
- variable: medium
label: "EmptyDir Medium"
schema:
show_if: [["type", "=", "emptyDir"]]
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"

View File

@ -39,6 +39,20 @@
description: "pvc"
- value: "hostPath"
description: "hostPath"
- 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: ""
- variable: setPermissionsSimple
label: "Automatic Permissions"
description: "Automatically set permissions on install"