Pārlūkot izejas kodu

allow changing interface name (#2774)

Stavros Kois 11 mēneši atpakaļ
vecāks
revīzija
c285104ebd

+ 1 - 1
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'

+ 6 - 0
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:

+ 1 - 0
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 }}

+ 1 - 0
library/ix-dev/charts/pihole/values.yaml

@@ -18,6 +18,7 @@ piholeConfig:
 
 piholeNetwork:
   webPort: 20489
+  interfaceName: ''
   dhcp:
     enabled: false
     start: ''