fix(cloudflareddns): BREAKING: UPDATE cloudflareddns to ENV only and remove outdated Zone … (#43820)

…stuff

**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.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ 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
- [ ] 📜 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
-->

**📃 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
- [ ] 📄 I have made changes to the documentation
- [ ] 🧪 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
- [ ] 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: Alfred Göppel <43101280+alfi0812@users.noreply.github.com>
This commit is contained in:
Alfred Göppel
2026-01-19 16:50:02 +01:00
committed by GitHub
parent 5a0b09a8ba
commit d287083c55
4 changed files with 9 additions and 68 deletions
+1 -2
View File
@@ -39,5 +39,4 @@ sources:
- https://github.com/trueforge-org/truecharts/tree/master/charts/stable/cloudflareddns
- https://hotio.dev/containers/cloudflareddns/
type: application
version: 12.14.17
version: 13.0.0
@@ -1,32 +0,0 @@
{{/* Define the secret */}}
{{- define "cloudflareddns.secret" -}}
{{- $cfddns := .Values.cloudflareddns -}}
{{- $domains := list }}
{{- $records := list }}
{{- $zones := list }}
{{- range $item := $cfddns.host_zone_record }}
{{- $domains = mustAppend $domains $item.domain }}
{{- $records = mustAppend $records $item.record }}
{{- $zones = mustAppend $zones $item.zone }}
{{- end }}
enabled: true
data:
{{- with $cfddns.user }}
CF_USER: {{ . | quote }}
{{- end }}
{{- with $cfddns.api_key }}
CF_APIKEY: {{ . | quote }}
{{- end }}
{{- with $cfddns.api_token }}
CF_APITOKEN: {{ . | quote }}
{{- end }}
{{- with $cfddns.api_token_zone }}
CF_APITOKEN_ZONE: {{ . | quote }}
{{- end }}
INTERVAL: {{ $cfddns.interval | quote }}
LOG_LEVEL: {{ $cfddns.log_level | quote }}
DETECTION_MODE: {{ $cfddns.detect_override | default $cfddns.detect_mode | quote }}
CF_ZONES: {{ join ";" $zones | quote }}
CF_HOSTS: {{ join ";" $domains | quote }}
CF_RECORDTYPES: {{ join ";" $records | quote }}
{{- end -}}
@@ -1,11 +1 @@
{{/* Make sure all variables are set properly */}}
{{- include "tc.v1.common.loader.init" . }}
{{/* Render secrets for cloudflareddns */}}
{{- $secrets := include "cloudflareddns.secret" . | fromYaml -}}
{{- if $secrets -}}
{{- $_ := set .Values.secret "secret" $secrets -}}
{{- end -}}
{{/* Render the templates */}}
{{ include "tc.v1.common.loader.apply" . }}
{{ include "tc.v1.common.loader.all" . }}
+7 -23
View File
@@ -2,26 +2,6 @@ image:
repository: oci.trueforge.org/containerforge/cloudflareddns
pullPolicy: IfNotPresent
tag: 3.0.0@sha256:a79eb8d0d85791c8278d16cf64295aab95acc5477e1f71cd7739c25d9b0d5806
cloudflareddns:
user: your.cf.email@example.com
api_token: ""
api_key: ""
api_token_zone: ""
interval: 300
detect_mode: dig-whoami.cloudflare
detect_override: ""
log_level: 3
host_zone_record: []
# - domain: example.com
# zone: A1jajaja
# record: A
# - domain: foobar.com
# zone: B1aksksa
# record: A
# - domain: foobar.com
# zone: Cs11kdkkasks
# record: AAAA
service:
main:
enabled: false
@@ -43,9 +23,13 @@ workload:
env:
UPDATE_IPV4: true
UPDATE_IPV6: true
envFrom:
- secretRef:
name: "secret"
DETECTION_MODE: "dig-whoami.cloudflare"
LOG_LEVEL: 3
CF_APITOKEN: "CLOUDFLARETOKEN"
# CF_USER: not needed with API Token
# CF_APIKEY: not needed with API Token
CF_HOSTS: "subdomain.example.com, subdomain.example.org"
INTERVAL: 300
persistence:
config:
enabled: true