You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/upgrading_to_v35.0.md
+44Lines changed: 44 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,3 +6,47 @@ The Terraform Kubernetes Engine Module now requires version 6 of the Google Clou
6
6
7
7
### Private Cluster Sub-Modules Endpoint Output
8
8
The private cluster sub-modules now return the cluster's private endpoint for the `endpoint` output when the `enable_private_endpoint` argument is `true`, regardless of the `deploy_using_private_endpoint` argument value.
9
+
10
+
## Update variant random ID keepers updated
11
+
12
+
The v35.0 release updates the keepers for the update variant modules. This will force a recreation of the nodepools.
13
+
14
+
To avoid this, it is possible to edit the remote state of the `random_id` resource to add the new attributes.
15
+
16
+
1. Perform a `terraform plan` as normal, identifying the `random_id` resource(s) changing and the new/removed attributes
17
+
```tf
18
+
~ keepers = { # forces replacement
19
+
- "disk_type" = "" -> null
20
+
- "disk_size_gb" = "" -> null
21
+
- "machine_type" = "" -> null
22
+
- "enable_gcfs" = "" -> null
23
+
# (19 unchanged elements hidden)
24
+
}
25
+
# (2 unchanged attributes hidden)
26
+
}
27
+
```
28
+
2. Pull the remote state locally: `terraform state pull > default.tfstate`
29
+
3. Back up the original remote state: `cp default.tfstate original.tfstate`
30
+
4. Edit the `random_id` resource(s) to add/remove the attributes from the `terraform plan` step
31
+
```diff
32
+
"attributes": {
33
+
"b64_std": "pool-02-vb4=",
34
+
"b64_url": "pool-02-vb4",
35
+
"byte_length": 2,
36
+
"dec": "pool-02-48574",
37
+
"hex": "pool-02-bdbe",
38
+
"id": "vb4",
39
+
"keepers": {
40
+
...
41
+
"taints": "",
42
+
- "disk_size_gb": "",
43
+
- "enable_gcfs": "",
44
+
- "machine_type": "",
45
+
- "disk_type": "",
46
+
},
47
+
"prefix": "pool-02-"
48
+
}
49
+
```
50
+
1. Bump the serial number at the top
51
+
2. Push the modified state to the remote `terraform state push default.tfstate`
52
+
3. Confirm the `random_id` resource(s) no longer changes (or the corresponding `nodepool`) in a `terraform plan`
0 commit comments