Skip to content

Commit

Permalink
allow node pools with size 0 (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
birdayz authored and danawillow committed Nov 17, 2017
1 parent 451b9cb commit 7a9582a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions google/resource_container_node_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7a9582a

Please sign in to comment.