From c285104ebd7d640b4e7398c4b0e913460522e252 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:06:18 +0300 Subject: [PATCH] allow changing interface name (#2774) --- library/ix-dev/charts/pihole/Chart.yaml | 2 +- library/ix-dev/charts/pihole/questions.yaml | 6 ++++++ library/ix-dev/charts/pihole/templates/_pihole.tpl | 1 + library/ix-dev/charts/pihole/values.yaml | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/library/ix-dev/charts/pihole/Chart.yaml b/library/ix-dev/charts/pihole/Chart.yaml index b721cfe803..5bdc9b2305 100644 --- a/library/ix-dev/charts/pihole/Chart.yaml +++ b/library/ix-dev/charts/pihole/Chart.yaml @@ -3,7 +3,7 @@ description: DNS and Ad-filtering for your network. annotations: title: Pi-hole type: application -version: 2.0.13 +version: 2.0.14 apiVersion: v2 appVersion: 2024.07.0 kubeVersion: '>=1.16.0-0' diff --git a/library/ix-dev/charts/pihole/questions.yaml b/library/ix-dev/charts/pihole/questions.yaml index ed7f35e2b5..5b85c7bcce 100644 --- a/library/ix-dev/charts/pihole/questions.yaml +++ b/library/ix-dev/charts/pihole/questions.yaml @@ -114,6 +114,12 @@ questions: min: 9000 max: 65535 required: true + - variable: interfaceName + label: Interface Name + description: The name of the interface to use for Pi-Hole. + schema: + type: string + default: "" - variable: dhcp label: DHCP Configuration schema: diff --git a/library/ix-dev/charts/pihole/templates/_pihole.tpl b/library/ix-dev/charts/pihole/templates/_pihole.tpl index 83705100c3..c9095c7ed2 100644 --- a/library/ix-dev/charts/pihole/templates/_pihole.tpl +++ b/library/ix-dev/charts/pihole/templates/_pihole.tpl @@ -33,6 +33,7 @@ workload: env: WEB_PORT: {{ .Values.piholeNetwork.webPort }} WEBPASSWORD: {{ .Values.piholeConfig.webPassword | quote }} + INTERFACE: {{ .Values.piholeNetwork.interfaceName }} {{- if .Values.piholeNetwork.dhcp.enabled }} DHCP_ACTIVE: "true" DHCP_START: {{ .Values.piholeNetwork.dhcp.start }} diff --git a/library/ix-dev/charts/pihole/values.yaml b/library/ix-dev/charts/pihole/values.yaml index eb3df049a2..f29f9fd287 100644 --- a/library/ix-dev/charts/pihole/values.yaml +++ b/library/ix-dev/charts/pihole/values.yaml @@ -18,6 +18,7 @@ piholeConfig: piholeNetwork: webPort: 20489 + interfaceName: '' dhcp: enabled: false start: ''