Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revive initial_node_count #1176

Merged
merged 1 commit into from
Mar 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 project in which to create the node pool. If blank,
the provider-configured project will be used.
Expand Down