Skip to content

feat(cloudflare): Support DNS record tags #5488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

7onn
Copy link
Contributor

@7onn 7onn commented May 31, 2025

What does it do ?

This will add a flags to be used on the Cloudflare provider for making comment available for DNS records.

Comment can be set as follows

  • As a program flag --cloudflare-record-tags="kubernetes,external-dns"
  • Or as Ingress annotations, taking precedence over the program args
annotations:
  external-dns.alpha.kubernetes.io/cloudflare-record-tags: "kubernetes,external-dns,my-app"

Motivation

That's helpful when you already have a lot of records and you'd like to track what external-dns is provisioning there and why.

Fixes #5442

More

I'll do some smoke tests in my staging envs soon! Will post the results here.

  • Yes, this PR title follows Conventional Commits
  • Yes, I added unit tests
  • Yes, I updated end user documentation accordingly

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 31, 2025
@k8s-ci-robot k8s-ci-robot requested review from mloiseleur and szuecs May 31, 2025 21:31
@k8s-ci-robot k8s-ci-robot added docs cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. provider Issues or PRs related to a provider source needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 31, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @7onn. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 31, 2025
@ivankatliarchuk
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 1, 2025
@k8s-ci-robot
Copy link
Contributor

@7onn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-external-dns-unit-test 2177040 link true /test pull-external-dns-unit-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign raffo for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ivankatliarchuk
Copy link
Contributor

any chance to review this comment as well #5411 (comment)?

@7onn
Copy link
Contributor Author

7onn commented Jun 3, 2025

any chance to review this comment as well #5411 (comment)?

excellent suggestion, thanks; done: f48e5c7

However, I'm still facing the endless loop of UPDATES with this current code. Even more concerningly, the tags aren't updated at all in Cloudflare 🤔 Investigating...

@7onn 7onn force-pushed the 7onn/cloudflare-tags branch from 67fb1fb to f48e5c7 Compare June 3, 2025 16:24
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 22, 2025
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 27, 2025
@7onn 7onn force-pushed the 7onn/cloudflare-tags branch from c99f5e1 to d4c42dd Compare June 27, 2025 14:36
@7onn 7onn force-pushed the 7onn/cloudflare-tags branch from d4c42dd to 2616df5 Compare June 27, 2025 14:44
@7onn 7onn force-pushed the 7onn/cloudflare-tags branch from 2616df5 to bd289e5 Compare June 27, 2025 19:01
@7onn
Copy link
Contributor Author

7onn commented Jun 27, 2025

any chance to review this comment as well #5411 (comment)?

@ivankatliarchuk I had to address it on another PR, specially because there was an uncaught bug when splitting the pull request into one specific for comments! https://github.com/kubernetes-sigs/external-dns/pull/5582/files

I forgot to pass the comment on the the updateDNSRecordParam() and getCreateDNSRecordParam()

upate: still no success on troubleshooting why these tags are stuck on an endless loop of updates! tried several things but no success so far; gonna postpone this once again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. docs ok-to-test Indicates a non-member PR verified by an org member that is safe to test. provider Issues or PRs related to a provider size/L Denotes a PR that changes 100-499 lines, ignoring generated files. source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloudflare: Support tagging for DNS records
3 participants