Skip to content
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

flush all record external-dns created #251

Closed
ensonic opened this issue Jun 27, 2017 · 7 comments
Closed

flush all record external-dns created #251

ensonic opened this issue Jun 27, 2017 · 7 comments
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@ensonic
Copy link

ensonic commented Jun 27, 2017

When undeploying a cluster for google cloud-dns the zone should be emptied. Right now one would need to remove the services and wait 'a bit' until external-dns removed the dns-record, then undeploy external-dns.
It would be nice to have a way to either force updating the records or having a way to flush the added records manually.

@hjacobs
Copy link
Contributor

hjacobs commented Jun 27, 2017

I guess creating a script to iterate through all DNS records "owned" by External DNS (e.g. identified by TXT record) should be easy to do. I don't see this as part of the External DNS "core".

@ensonic
Copy link
Author

ensonic commented Jun 28, 2017

I've considered this. Unfortunately gcloud dns does not make this easy. Deleting a record requires you to specify all fields. One can filter like this:

gcloud dns record-sets list --zone=external-dns --format=json | jq '. | map(select(.type == "A" or .type == "TXT"))'

but generating the transaction from this list is still not trivial :/

@ideahitme
Copy link

Thanks for the idea.

IMO there might be a certain use for this feature, though I don't see it coming in the nearest future, as for now we are more concentrated on core components - dns providers, compatibility and refactoring, having a functionality to flush the records will probably not come before we will stabilise the "where's" and "how's" the records are managed on dns provider side and how they are generated from k8s resources.

@ideahitme ideahitme added the kind/support Categorizes issue or PR as a support question. label Jul 4, 2017
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 21, 2019
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 21, 2019
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

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/test-infra repository.

lou-lan pushed a commit to lou-lan/external-dns that referenced this issue May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

5 participants