From 7a9582ac00d64cef2951d420d2ea20585f784e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Br=C3=BCderl?= Date: Fri, 17 Nov 2017 02:38:42 +0100 Subject: [PATCH] allow node pools with size 0 (#752) --- google/resource_container_node_pool.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/google/resource_container_node_pool.go b/google/resource_container_node_pool.go index 4edce764..66674daa 100644 --- a/google/resource_container_node_pool.go +++ b/google/resource_container_node_pool.go @@ -104,7 +104,7 @@ var schemaNodePool = map[string]*schema.Schema{ Type: schema.TypeInt, Optional: true, Computed: true, - ValidateFunc: validation.IntAtLeast(1), + ValidateFunc: validation.IntAtLeast(0), }, } @@ -281,9 +281,6 @@ func expandNodePool(d *schema.ResourceData, prefix string) (*container.NodePool, } nodeCount = nc.(int) } - if nodeCount == 0 { - return nil, fmt.Errorf("Node pool %s cannot be set with 0 node count", name) - } np := &container.NodePool{ Name: name,