From 30bd931ff514d1a3cd97fc0c112e1210aec1e6d6 Mon Sep 17 00:00:00 2001 From: David Quarles Date: Tue, 21 Nov 2017 12:56:29 -0800 Subject: [PATCH] Add support for `google_container_node_pool` management (#669) * 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 --- docs/r/container_node_pool.html.markdown | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/r/container_node_pool.html.markdown b/docs/r/container_node_pool.html.markdown index e0e88f725ec..07e105be9f5 100644 --- a/docs/r/container_node_pool.html.markdown +++ b/docs/r/container_node_pool.html.markdown @@ -63,6 +63,9 @@ 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. @@ -70,7 +73,7 @@ resource "google_container_cluster" "primary" { 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. @@ -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.