Skip to content

Commit e853cdd

Browse files
chore: Add step to avoid nodepool replacement due to random-id change (terraform-google-modules#857)
* Add step to avoid nodepool replacement due to random-id change * Update upgrading_to_v13.0.md * Update upgrading_to_v13.0.md Co-authored-by: Morgante Pell <morgante.pell@morgante.net>
1 parent 1a2c26e commit e853cdd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/upgrading_to_v13.0.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,22 @@ This is destructive and will result in deletion and recreation of the ACM operat
7373
7474
Plan: 0 to add, 0 to change, 3 to destroy.
7575
```
76+
77+
### Node Pool Random ID Keepers Modified
78+
79+
Note: This change only applies to the update variant submodules.
80+
81+
As reported in issue [#842](https://github.com/terraform-google-modules/terraform-google-kubernetes-engine/issues/842), the v13.0 release has
82+
added the node pool taints to the `keepers` for the `random_id` resource used in the naming of node pools.
83+
84+
This addition forces a replacement of the `random_id` resource, and therefore the node pools themselves.
85+
86+
To avoid this, it is possible to edit the remote state of the `random_id` resource to add the "missing" `keeper` attribute.
87+
88+
1. Perform a `terraform plan` as normal, identifying the `random_id` resources changing and the new `"taints"` attribute
89+
1. Pull the remote state locally: `terraform state pull > default.tfstate`
90+
1. Back up the original remote state: `cp default.tfstate original.tfstate`
91+
1. Edit the `random_id` resources to add in the new `"taints"` attributes from the `terraform plan` step
92+
1. Bump the serial number at the top
93+
1. Push the modified state to the remote `terraform state push default.tfstate`
94+
1. Confirm the `random_id` resource no longer changes (or the corresponding `nodepool`) in a `terraform plan`

0 commit comments

Comments
 (0)