mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-23 18:16:01 +00:00
Adding instance_group_urls in resource_container_node_pool (#1207)
This commit is contained in:
parent
a1e23356ab
commit
7d3d13c7b1
|
@ -94,6 +94,12 @@ var schemaNodePool = map[string]*schema.Schema{
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"instance_group_urls": {
|
||||||
|
Type: schema.TypeList,
|
||||||
|
Computed: true,
|
||||||
|
Elem: &schema.Schema{Type: schema.TypeString},
|
||||||
|
},
|
||||||
|
|
||||||
"management": {
|
"management": {
|
||||||
Type: schema.TypeList,
|
Type: schema.TypeList,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
@ -430,6 +436,7 @@ func flattenNodePool(d *schema.ResourceData, config *Config, np *containerBeta.N
|
||||||
"initial_node_count": np.InitialNodeCount,
|
"initial_node_count": np.InitialNodeCount,
|
||||||
"node_count": size / len(np.InstanceGroupUrls),
|
"node_count": size / len(np.InstanceGroupUrls),
|
||||||
"node_config": flattenNodeConfig(np.Config),
|
"node_config": flattenNodeConfig(np.Config),
|
||||||
|
"instance_group_urls": np.InstanceGroupUrls,
|
||||||
}
|
}
|
||||||
|
|
||||||
if np.Autoscaling != nil && np.Autoscaling.Enabled {
|
if np.Autoscaling != nil && np.Autoscaling.Enabled {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user