From c433063bac3c3b5e6ad831b8bf28094f934206a0 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Sun, 5 Sep 2021 10:19:55 +0300 Subject: [PATCH] correct paths for pvc on pihole (#896) * correct paths for pvc on pihole * eof * actual eof.. * space * space * fix label --- charts/stable/pihole/SCALE/questions.yaml | 150 +++++++++++++++++++++- charts/stable/pihole/values.yaml | 8 +- 2 files changed, 156 insertions(+), 2 deletions(-) diff --git a/charts/stable/pihole/SCALE/questions.yaml b/charts/stable/pihole/SCALE/questions.yaml index 84fe1d9bc05..a413311630f 100644 --- a/charts/stable/pihole/SCALE/questions.yaml +++ b/charts/stable/pihole/SCALE/questions.yaml @@ -781,7 +781,7 @@ questions: description: "Path inside the container the storage is mounted" schema: type: string - default: "/config" + default: "/etc/pihole" hidden: true - variable: medium label: "EmptyDir Medium" @@ -814,6 +814,154 @@ questions: show_if: [["type", "=", "pvc"]] type: string default: "100Gi" + - variable: dnsmasq + label: "App dnsmasq.d Storage" + description: "Stores the Application dnsmasq.d." + 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: "/etc/dnsmasq.d" + 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 label: "Additional app storage" group: "Storage and Persistence" diff --git a/charts/stable/pihole/values.yaml b/charts/stable/pihole/values.yaml index f5dc221586d..f9c8e261232 100644 --- a/charts/stable/pihole/values.yaml +++ b/charts/stable/pihole/values.yaml @@ -29,7 +29,7 @@ service: port: 53 pihole: - WEBPASSWORD: "somepassword" + WEBPASSWORD: "somepassword" DNS1: "9.9.9.9" DNS2: "149.112.112.112" @@ -41,3 +41,9 @@ persistence: type: pvc accessMode: ReadWriteOnce size: "100Gi" + dnsmasq: + enabled: true + mountPath: "/etc/dnsmasq.d" + type: pvc + accessMode: ReadWriteOnce + size: "100Gi"