From 72ed0cda1c4adf37f07cd60926f421d4613fdc46 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Sun, 5 Jun 2022 16:59:11 +0200 Subject: [PATCH] feat(questions): add NFS server persistence GUI option and simplify persistence section --- templates/questions/persistenceBasic.yaml | 48 +++++++++++++++++++++++ templates/questions/persistenceList.yaml | 14 +++++++ 2 files changed, 62 insertions(+) diff --git a/templates/questions/persistenceBasic.yaml b/templates/questions/persistenceBasic.yaml index 5ee9100f317..d90d33d0c65 100644 --- a/templates/questions/persistenceBasic.yaml +++ b/templates/questions/persistenceBasic.yaml @@ -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" diff --git a/templates/questions/persistenceList.yaml b/templates/questions/persistenceList.yaml index be6c2b3d43b..0680bde7498 100644 --- a/templates/questions/persistenceList.yaml +++ b/templates/questions/persistenceList.yaml @@ -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"