From 761b3a1db222125de005338b130683321d8bfc25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Br=C3=BCderl?= Date: Thu, 16 Nov 2017 18:00:08 +0100 Subject: [PATCH] allow node pools with size 0 --- 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 4edce7646eb..66674daa0c3 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,