-
Notifications
You must be signed in to change notification settings - Fork 626
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
Cloudflare LoadBalancer support for Pool Latitude and Longitude #1093
Cloudflare LoadBalancer support for Pool Latitude and Longitude #1093
Conversation
go.mod
Outdated
@@ -3,7 +3,7 @@ module github.com/cloudflare/terraform-provider-cloudflare | |||
go 1.15 | |||
|
|||
require ( | |||
github.com/cloudflare/cloudflare-go v0.17.0 | |||
github.com/cloudflare/cloudflare-go v0.17.1-0.20210602222010-1740533cf449 |
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.
are you able to remove this from the PR? we generally bump dependencies outside of the functionality and then just merge the feature once it is ready. this does mean we're pending the release of cloudflare-go
but that is generally 👌
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 don't think I can that hash is the first commit containing the Latitude and Longitude fields on cloudflare.LoadBalancerPool they don't exist in the last released version.
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.
yep, that's expected. we'll have an error on the build here in GitHub but once we cut a new release of cloudflare-go, this will get the update and won't have to deal with conflicts as it will change underneath it. if we leave this here and in other PRs, all of them will have to resolve go.mod
and go.sum
conflicts upon update which are no fun for anyone.
when i pull the tests locally, i can shim in the latest master version too using go
's replace
in the go.mod
file to roughly check it out.
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.
makes sense I've removed the mod changes from this PR
we'll also want to update https://github.com/cloudflare/terraform-provider-cloudflare/blob/master/website/docs/r/load_balancer.html.markdown to add the new values and descriptions to the website documentation. |
393f56f
to
83a75e3
Compare
I always forget about that. I've added latitude and longitude to the pool documentation. |
83a75e3
to
2875b73
Compare
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.
lgtm, just waiting on cloudflare-go's release to get this merged
2875b73
to
6cf400b
Compare
Rebased in latest master to get the latest cloudflare-go changes. |
looks like we've got a type issue here with the float64 vs *float32
|
Ah, I remembered why. Terraform schema |
6cf400b
to
76a2583
Compare
We're up and running now but it looks like the float is extremely precise 😛
Do we want to trim this to only store a single degree of accuracy instead of 15? |
Removed duplicated float validation function replaced with standard version from validation package.
76a2583
to
82b9c9c
Compare
b475b6f
to
6e45ba3
Compare
looking good here too!
|
Added support for Latitude/Longitude for load balancer pools.
Removed duplicated float validation function replaced with standard version from validation package.