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

Add support for multiple target addresses in CloudFlare provider #970

Merged
merged 1 commit into from
Apr 16, 2019

Conversation

nta
Copy link
Contributor

@nta nta commented Apr 10, 2019

This is an attempt to fix #887.

I took a bit of a lazy route to implement this, instead of trying to manage equivalence state for record updates and/or refactoring most the provider, I simply took the same solution rancher/external-dns's CloudFlare provider took, and implemented updates as a sequence of delete + create for all records matching the combination of name and type.

CloudFlare does not seem to support records with real 'sets' of targets in basic DNS - it seems to do so in the additional-cost 'load balancing' product - though this should work well in theory.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 10, 2019
@k8s-ci-robot k8s-ci-robot requested review from hjacobs and linki April 10, 2019 20:24
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 10, 2019
@nta nta force-pushed the patch/cloudflare-targets branch from 8599b6e to 78c3397 Compare April 10, 2019 20:41
@nta
Copy link
Contributor Author

nta commented Apr 10, 2019

Forgot to gofmt as I assumed my IDE did it for me, it didn't - did a force-push to update this.

@nta nta force-pushed the patch/cloudflare-targets branch from 78c3397 to cb6970e Compare April 10, 2019 21:09
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 10, 2019
@nta
Copy link
Contributor Author

nta commented Apr 10, 2019

Fixed a test failure by changing the unit test to match the new package-internal interface.

@njuettner
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 16, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: njuettner

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

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2019
@k8s-ci-robot k8s-ci-robot merged commit 256f4d6 into kubernetes-sigs:master Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

External DNS for cloudflare doesn't create records for all ingress addresses
3 participants