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

Load Balancer: Deprecate "algorithm" attribute #1127

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions digitalocean/loadbalancer/datasource_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func DataSourceDigitalOceanLoadbalancer() *schema.Resource {
Type: schema.TypeString,
Computed: true,
Description: "algorithm used to determine which backend Droplet will be selected by a client",
Deprecated: "This field has been deprecated. You can no longer specify an algorithm for load balancers.",
},
"status": {
Type: schema.TypeString,
Expand Down
1 change: 1 addition & 0 deletions digitalocean/loadbalancer/resource_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func resourceDigitalOceanLoadBalancerV0() *schema.Resource {
"round_robin",
"least_connections",
}, false),
Deprecated: "This field has been deprecated. You can no longer specify an algorithm for load balancers.",
},

"forwarding_rule": {
Expand Down
3 changes: 1 addition & 2 deletions docs/resources/loadbalancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ The following arguments are supported:
* `region` - (Required) The region to start in
* `size` - (Optional) The size of the Load Balancer. It must be either `lb-small`, `lb-medium`, or `lb-large`. Defaults to `lb-small`. Only one of `size` or `size_unit` may be provided.
* `size_unit` - (Optional) The size of the Load Balancer. It must be in the range (1, 100). Defaults to `1`. Only one of `size` or `size_unit` may be provided.
* `algorithm` - (Optional) The load balancing algorithm used to determine
which backend Droplet will be selected by a client. It must be either `round_robin`
* `algorithm` - (Optional) **Deprecated** This field has been deprecated. You can no longer specify an algorithm for load balancers.
or `least_connections`. The default value is `round_robin`.
* `forwarding_rule` - (Required) A list of `forwarding_rule` to be assigned to the
Load Balancer. The `forwarding_rule` block is documented below.
Expand Down
Loading