mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
allow node pools with size 0 (#752)
This commit is contained in:
parent
451b9cb6b6
commit
7a9582ac00
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user