mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-03 01:01:06 +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,
|
||||||
@ -425,11 +431,12 @@ func flattenNodePool(d *schema.ResourceData, config *Config, np *containerBeta.N
|
|||||||
size += int(igm.TargetSize)
|
size += int(igm.TargetSize)
|
||||||
}
|
}
|
||||||
nodePool := map[string]interface{}{
|
nodePool := map[string]interface{}{
|
||||||
"name": np.Name,
|
"name": np.Name,
|
||||||
"name_prefix": d.Get(prefix + "name_prefix"),
|
"name_prefix": d.Get(prefix + "name_prefix"),
|
||||||
"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