Skip to content

Commit

Permalink
Add support for google_container_node_pool management (hashicorp#669)
Browse files Browse the repository at this point in the history
* add support for `google_container_node_pool` management (sans-tests)

* [review] add tests, docs, general cleanup

* add docs

* [review] amend test to check updates and terraform fmt

* test updates, make nested management fields non-computed
  • Loading branch information
davidquarles authored and danawillow committed Nov 21, 2017
1 parent 1ab39f1 commit 30bd931
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/r/container_node_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,17 @@ resource "google_container_cluster" "primary" {
* `initial_node_count` - (Deprecated, Optional) The initial node count for the pool.
Use `node_count` instead.

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

* `name` - (Optional) The name of the node pool. If left blank, Terraform will
auto-generate a unique name.

* `name_prefix` - (Optional) Creates a unique name for the node pool beginning
with the specified prefix. Conflicts with `name`.

* `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.

Expand All @@ -84,6 +87,12 @@ The `autoscaling` block supports:

* `max_node_count` - (Required) Maximum number of nodes in the NodePool. Must be >= min_node_count.

The `management` block supports:

* `auto_repair` - (Optional) Whether the nodes will be automatically repaired.

* `auto_upgrade` - (Optional) Whether the nodes will be automatically upgraded.

## Import

Node pools can be imported using the `zone`, `cluster` and `name`, e.g.
Expand Down

0 comments on commit 30bd931

Please sign in to comment.