revive initial_node_count (#1176)

This commit is contained in:
Dana Hoffman 2018-03-13 11:45:01 -07:00 committed by GitHub
parent 8fcaa509cb
commit fd0819786b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -86,11 +86,10 @@ var schemaNodePool = map[string]*schema.Schema{
}, },
"initial_node_count": &schema.Schema{ "initial_node_count": &schema.Schema{
Type: schema.TypeInt, Type: schema.TypeInt,
Optional: true, Optional: true,
ForceNew: true, ForceNew: true,
Computed: true, Computed: true,
Deprecated: "Use node_count instead",
}, },
"management": { "management": {

View File

@ -100,8 +100,8 @@ resource "google_container_cluster" "primary" {
* `autoscaling` - (Optional) Configuration required by cluster autoscaler to adjust * `autoscaling` - (Optional) Configuration required by cluster autoscaler to adjust
the size of the node pool to the current cluster usage. Structure is documented below. 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. * `initial_node_count` - (Optional) The initial node count for the pool. Changing this will force
Use `node_count` instead. recreation of the resource.
* `management` - (Optional) Node management configuration, wherein auto-repair and * `management` - (Optional) Node management configuration, wherein auto-repair and
auto-upgrade is configured. Structure is documented below. auto-upgrade is configured. Structure is documented below.
@ -115,7 +115,8 @@ resource "google_container_cluster" "primary" {
* `node_config` - (Optional) The node configuration of the pool. See * `node_config` - (Optional) The node configuration of the pool. See
[google_container_cluster](container_cluster.html) for schema. [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, * `project` - (Optional) The ID of the project in which to create the node pool. If blank,
the provider-configured project will be used. the provider-configured project will be used.