-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/cloudflare: Add proxied option #5508
Conversation
}, | ||
|
||
"proxied": &schema.Schema{ | ||
Type: schema.TypeBool, | ||
Optional: true, |
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.
Generally for bools we just reflect the upstream default w/ Default: false
, then below instead of checking GetOk
you can simply set d.Get("proxied").(bool)
directly.
@xla on first review this is looking really nice! You can find docs about vendoring the new library here: https://github.com/hashicorp/terraform#adding-a-dependency As for removing the old library - it looks like that has to be done manually by editing the If you like, you can just do the addition of the new library on this PR to get the build passing, and we can take care of the cleanup of the old library on master. 👍 |
@phinze Thanks for the quick follow-up. I incorporated your feedback, unfortunately trying to add the dependency results in either errors or a hanging |
@phinze Was able to add the missing dependency and the build is green. Unfortunately CloudFlare changed a type returned in the paging part of their API so that this PR is blocked by crackcomm/cloudflare#4. |
@phinze Good to go from my side. |
This change adds the support for the proxied configuration option for a record which enables origin protection for CloudFlare records. In order to do so the golang library needed to be changed as the old did not support the option and was using and outdated API version. Open issues which ask for this (#5049, #3805).
Tests pass as expected and the deps have been vendored now :)
|
Thanks for all the follow up work here @xla :) |
This change adds the support for the proxied configuration option for a record which enables origin protection for CloudFlare records. In order to do so the golang library needed to be changed as the old did not support the option and was using and outdated API version. Open issues which ask for this (hashicorp#5049, hashicorp#3805).
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This change adds the support for the proxied configuration option for a record which enables origin protection for CloudFlare records.
In order to do so the golang library needed to be changed as the old did not support the option and was using and outdated API version.
There are a couple of open issues which ask for this (#5049, #3805).
I was uncertain about the dependency changes and how that is reflected. How are they managed and how can they be changed and bumped?