feat(external dns): Support for PiHole V6 (#35450)

**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
Support for PiHole V6 has been added in the latest External DNS release.
Made some changes to account for the new api flag and requisite changes
to the docs.

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [x] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code
- [ ] 📜 Documentation Changes

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->
Tested the new External DNS chart with PiHole in my own cluster by
adding the api version flag as an env variable and verified it is
working as intended. Made the changes in this PR to bring the flag into
line with the rest of the PiHole related config.

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [X] 📄 I have made changes to the documentation
- [X] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [X] ⬆️ I increased versions for any altered app according to semantic
versioning
- [X] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or
`fix(docs):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: MaverickD650 <92877124+MaverickD650@users.noreply.github.com>
Co-authored-by: Kjeld Schouten <info@kjeldschouten.nl>
This commit is contained in:
MaverickD650
2025-05-18 16:28:50 +01:00
committed by GitHub
parent af1dd721f1
commit 6646eb121e
4 changed files with 14 additions and 8 deletions
+1 -1
View File
@@ -36,5 +36,5 @@ sources:
- https://github.com/kubernetes-sigs/external-dns
- https://github.com/truecharts/charts/tree/master/charts/stable/external-dns
type: application
version: 6.8.0
version: 6.9.0
@@ -71,19 +71,20 @@ If this works, you'll see DNS entries inside Cloudflare's DNS page.
### PiHole
:::danger[Temporally broken]
Because of API changes in Pi-hole v6 this is temporally broken.
More info: https://github.com/kubernetes-sigs/external-dns/issues/5113
:::
#### Step 1
- Set `pihole` as provider
- set sources `ingress` and `service` should covers everything
- Recommend using `noop` for `registry`
- Set PiHole Server Address `piholeServer` and PiHole Server Password `piholePassword`
- Set `piholeAPIVersion` depending on which version of PiHole you have installed i.e. 5 or 6
:::caution[Future deprecation]
The option for version 5 of the PiHole api will be deprecated in a future External DNS release.
More info: https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/pihole.md
:::
```yaml
externaldns:
@@ -100,6 +101,7 @@ More info: https://github.com/kubernetes-sigs/external-dns/issues/5113
policy: "upsert-only" # would prevent ExternalDNS from deleting any records, omit to enable full synchronization
piholeServer: "http://pihole.pihole.svc.cluster.local:8089"
piholePassword: "DitIsSuperGeheim"
piholeAPIVersion: "6"
```
#### Step 2
@@ -45,4 +45,7 @@ args:
{{- with .Values.externaldns.piholePassword }}
- --pihole-password={{ . }}
{{- end -}}
{{- with .Values.externaldns.piholeAPIVersion }}
- --pihole-api-version={{ . }}
{{- end -}}
{{- end -}}
+1
View File
@@ -17,6 +17,7 @@ externaldns:
policy: ""
piholeServer: ""
piholePassword: ""
piholeAPIVersion: ""
triggerLoopOnEvent: "false"
txtOwnerId: ""
txtPrefix: ""