-
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
Add support for LB adaptive_routing, location_strategy, random_steering, and zero_downtime_failover #1941
Add support for LB adaptive_routing, location_strategy, random_steering, and zero_downtime_failover #1941
Conversation
56f99a6
to
0dfdeec
Compare
changelog detected ✅ |
to run the acceptance tests locally, you can run i'd highly advise running this in a dedicated account since it does create an destroy real resources and you wouldn't want it rogue in a production account. i can see a couple of issues with the tests but i'll let you get the test suite running to debug those before i do a review here 😄 |
0dfdeec
to
410acd9
Compare
Acceptance tests should pass now 👍
|
410acd9
to
b6295c5
Compare
…ng, and zero_downtime_failover
b6295c5
to
faee9c7
Compare
(Just corrected something minor in the documentation, but still ready for review 👍 ) |
nice work @tc80 👏 this is great! all the acceptance tests are passing on my end too, so let's get this merged! the next step i'd recommend with LB (when you have time of course), is migrating the to auto generated docs. it will save yourself a whole heap of headaches in the future. |
This functionality has been released in v3.25.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
adaptive_routing
andlocation_strategy
are new features that were recently added to cloudflare-go: cloudflare/cloudflare-go#1091The
random_steering
property was added in the past and I think we just forgot to add it to Terraform. Similarly,zero_downtime_failover
was added to thesession_affinity_attributes
object in the past and Terraform was never updated.All properties are documented here: https://api.cloudflare.com/#load-balancers-create-load-balancer
Also, I haven't run acceptance tests for this locally. I am new to Terraform — can you double-check to make sure I am handling
random_steering
properly? I am casting itspool_weights
directly asmap[string]float64
: