Skip to content

Commit 3554d6b

Browse files
Add warning about initial_node_count (#3851) (#2363)
Upstreamed this change from hashicorp/terraform-provider-google#6896 Signed-off-by: Modular Magician <[email protected]>
1 parent 07fcf4e commit 3554d6b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changelog/3851.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```release-note:none
2+
```

website/docs/r/container_node_pool.html.markdown

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,12 @@ resource "google_container_cluster" "primary" {
113113
the size of the node pool to the current cluster usage. Structure is documented below.
114114

115115
* `initial_node_count` - (Optional) The initial number of nodes for the pool. In
116-
regional or multi-zonal clusters, this is the number of nodes per zone. Changing
117-
this will force recreation of the resource.
116+
regional or multi-zonal clusters, this is the number of nodes per zone. Changing
117+
this will force recreation of the resource. WARNING: Resizing your node pool manually
118+
may change this value in your existing cluster, which will trigger destruction
119+
and recreation on the next Terraform run (to rectify the discrepancy). If you don't
120+
need this value, don't set it. If you do need it, you can [use a lifecycle block to
121+
ignore subsqeuent changes to this field](https://github.com/hashicorp/terraform-provider-google/issues/6901#issuecomment-667369691).
118122

119123
* `management` - (Optional) Node management configuration, wherein auto-repair and
120124
auto-upgrade is configured. Structure is documented below.

0 commit comments

Comments
 (0)