Skip to content

Commit

Permalink
revive initial_node_count (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow authored Mar 13, 2018
1 parent 8fcaa50 commit fd08197
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 4 additions & 5 deletions google/resource_container_node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,10 @@ var schemaNodePool = map[string]*schema.Schema{
},

"initial_node_count": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
ForceNew: true,
Computed: true,
Deprecated: "Use node_count instead",
Type: schema.TypeInt,
Optional: true,
ForceNew: true,
Computed: true,
},

"management": {
Expand Down
7 changes: 4 additions & 3 deletions website/docs/r/container_node_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ resource "google_container_cluster" "primary" {
* `autoscaling` - (Optional) Configuration required by cluster autoscaler to adjust
the size of the node pool to the current cluster usage. Structure is documented below.

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

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

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

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

0 comments on commit fd08197

Please sign in to comment.