Skip to content

Commit 0f46cae

Browse files
danawillowAshish Amarnath
authored and
Ashish Amarnath
committed
revive initial_node_count (hashicorp#1176)
1 parent 785fba7 commit 0f46cae

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

google/resource_container_node_pool.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,10 @@ var schemaNodePool = map[string]*schema.Schema{
8686
},
8787

8888
"initial_node_count": &schema.Schema{
89-
Type: schema.TypeInt,
90-
Optional: true,
91-
ForceNew: true,
92-
Computed: true,
93-
Deprecated: "Use node_count instead",
89+
Type: schema.TypeInt,
90+
Optional: true,
91+
ForceNew: true,
92+
Computed: true,
9493
},
9594

9695
"management": {

website/docs/r/container_node_pool.html.markdown

+4-3
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ resource "google_container_cluster" "primary" {
100100
* `autoscaling` - (Optional) Configuration required by cluster autoscaler to adjust
101101
the size of the node pool to the current cluster usage. Structure is documented below.
102102

103-
* `initial_node_count` - (Deprecated, Optional) The initial node count for the pool.
104-
Use `node_count` instead.
103+
* `initial_node_count` - (Optional) The initial node count for the pool. Changing this will force
104+
recreation of the resource.
105105

106106
* `management` - (Optional) Node management configuration, wherein auto-repair and
107107
auto-upgrade is configured. Structure is documented below.
@@ -115,7 +115,8 @@ resource "google_container_cluster" "primary" {
115115
* `node_config` - (Optional) The node configuration of the pool. See
116116
[google_container_cluster](container_cluster.html) for schema.
117117

118-
* `node_count` - (Optional) The number of nodes per instance group.
118+
* `node_count` - (Optional) The number of nodes per instance group. This field can be used to
119+
update the number of nodes per instance group but should not be used alongside `autoscaling`.
119120

120121
* `project` - (Optional) The ID of the project in which to create the node pool. If blank,
121122
the provider-configured project will be used.

0 commit comments

Comments
 (0)