From 21903e1478636dca706f2da0deeb94c6f0de339d Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Thu, 9 Nov 2023 21:48:59 +0200 Subject: [PATCH] fix(external-dns): fix zoneidfilters (#14496) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes #14492 **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ 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 - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ 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._ --- charts/enterprise/external-dns/Chart.yaml | 2 +- charts/enterprise/external-dns/templates/_args.tpl | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/charts/enterprise/external-dns/Chart.yaml b/charts/enterprise/external-dns/Chart.yaml index a9354bea0e7..c5ca8f50f07 100644 --- a/charts/enterprise/external-dns/Chart.yaml +++ b/charts/enterprise/external-dns/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/enterprise/external-dns - https://github.com/kubernetes-sigs/external-dns type: application -version: 1.0.3 +version: 1.0.4 annotations: truecharts.org/category: networking truecharts.org/SCALE-support: "true" diff --git a/charts/enterprise/external-dns/templates/_args.tpl b/charts/enterprise/external-dns/templates/_args.tpl index 84d9dbfa504..b6e7f0453cf 100644 --- a/charts/enterprise/external-dns/templates/_args.tpl +++ b/charts/enterprise/external-dns/templates/_args.tpl @@ -3,7 +3,7 @@ args: {{- with .Values.externaldns.provider }} - --provider={{ . }} {{- end -}} - {{- with .Values.externaldns.zoneidFilters }} + {{- range .Values.externaldns.zoneidFilters }} - --zone-id-filter={{ . }} {{- end -}} {{- with .Values.externaldns.cloudflareProxied }} @@ -36,11 +36,9 @@ args: {{- if .Values.externaldns.namespaced }} - --namespace={{ include "tc.v1.common.lib.metadata.namespace" (dict "caller" "External-DNS" "rootCtx" $ "objectData" .Values) }} {{- end -}} - {{- with .Values.externaldns.domainFilter }} - {{- range . -}} + {{- range .Values.externaldns.domainFilters }} - --domain-filter={{ . }} {{- end -}} - {{- end -}} {{- with .Values.externaldns.piholeServer }} - --pihole-server={{ . }} {{- end -}}