-
Notifications
You must be signed in to change notification settings - Fork 2.8k
refactor(cloudflare): use lib v4 for proxied service #5702
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
refactor(cloudflare): use lib v4 for proxied service #5702
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
Hi @vflaux wdyt to be a first reviewer? |
Why is the distinction based on the proxied flag? I don't see much difference between a proxied record and a not proxied one. |
|
||
switch cfc.ResourceRecord.Type { | ||
case "A": | ||
aRecord := dns.ARecordParam{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if we need to use those specialized structs since they're all the same except for the type field, which is restricted to a single unique value. Using RecordUpdateParamsBody
should work for all types.
I haven't tested this, but I think you still need to assign the type field when using the specialized struct, so there isn't much added value in using them.
cloudflare-go v5.0.0 has already been released, in this (early) state of PR it might make sense to switch; also, is the v4 for custom hostnames in a roadmap or should i start looking into it? |
PR needs rebase. 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. |
@AndrewCharlesHay Since PR switching to v5 has been merged, I close this one. Feel free to re-open it or open a new one if I missed something. /close |
@mloiseleur: Closed this PR. In response to this:
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. |
Yeah that's fine. Sorry for the late response. I'm on vacation |
What does it do ?
Updates the Cloudflare provider’s proxied functionality to v4, with related code and documentation updates. Similar to #5654 & #5609
Motivation
Addresses part of #5540
More