Skip to content

Commit 478f575

Browse files
authored
Add 4.0 upgrade guide (#93)
1 parent ceb506e commit 478f575

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [4.0.0](https://www.github.com/terraform-google-modules/terraform-google-lb-http/compare/v3.2.0...v4.0.0) (2020-04-21)
8-
8+
Please see the [upgrade guide](./docs/upgrading_to_v4.0.md) for details.
99

1010
### ⚠ BREAKING CHANGES
1111

docs/upgrading_to_v4.0.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Upgrading to v4.0
2+
3+
The v4.0 release contains backwards-incompatible
4+
changes to the backend config.
5+
6+
## Backend Config
7+
`session_affinity`, `affinity_cookie_ttl_sec`, and `log_config` must now be specified
8+
for backends. To use the default value, specify `null`.
9+
10+
```diff
11+
module "gce-lb-http" {
12+
source = "GoogleCloudPlatform/lb-http/google"
13+
- version = "~> 3.1"
14+
+ version = "~> 4.0"
15+
16+
backends = {
17+
default = {
18+
description = null
19+
protocol = "HTTP"
20+
port = var.service_port
21+
port_name = var.service_port_name
22+
timeout_sec = 10
23+
connection_draining_timeout_sec = null
24+
enable_cdn = false
25+
+ session_affinity = null
26+
+ affinity_cookie_ttl_sec = null
27+
+ log_config = null
28+
29+
health_check = {
30+
check_interval_sec = null
31+
timeout_sec = null
32+
healthy_threshold = null
33+
unhealthy_threshold = null
34+
request_path = "/"
35+
port = var.service_port
36+
host = null
37+
}
38+
39+
groups = [
40+
{
41+
# Each node pool instance group should be added to the backend.
42+
group = var.backend
43+
balancing_mode = null
44+
capacity_scaler = null
45+
description = null
46+
max_connections = null
47+
max_connections_per_instance = null
48+
max_connections_per_endpoint = null
49+
max_rate = null
50+
max_rate_per_instance = null
51+
max_rate_per_endpoint = null
52+
max_utilization = null
53+
},
54+
]
55+
}
56+
}
57+
}
58+
```

0 commit comments

Comments
 (0)