allow node pools with size 0 (#752)

This commit is contained in:
Johannes Brüderl 2017-11-17 02:38:42 +01:00 committed by Dana Hoffman
parent 451b9cb6b6
commit 7a9582ac00

View File

@ -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,