Remove update_strategy from rigm. (#2594)

<!-- This change is generated by MagicModules. -->
/cc @rileykarson
This commit is contained in:
The Magician 2018-12-10 08:24:18 -08:00 committed by Nathan McKinley
parent 893253d94a
commit e75a957aba
3 changed files with 7 additions and 13 deletions

View File

@ -153,11 +153,10 @@ func resourceComputeRegionInstanceGroupManager() *schema.Resource {
}, },
"update_strategy": &schema.Schema{ "update_strategy": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Deprecated: "This field is deprecated as it has no functionality anymore. It will be removed in 3.0.0.", Deprecated: "This field is removed.",
Optional: true, Optional: true,
Computed: true, Computed: true,
ValidateFunc: validation.StringInSlice([]string{"NONE", "ROLLING_UPDATE"}, false),
}, },
"target_pools": &schema.Schema{ "target_pools": &schema.Schema{

View File

@ -143,10 +143,9 @@ func TestAccRegionInstanceGroupManager_updateStrategy(t *testing.T) {
Config: testAccRegionInstanceGroupManager_updateStrategy(igm), Config: testAccRegionInstanceGroupManager_updateStrategy(igm),
}, },
{ {
ResourceName: "google_compute_region_instance_group_manager.igm-update-strategy", ResourceName: "google_compute_region_instance_group_manager.igm-update-strategy",
ImportState: true, ImportState: true,
ImportStateVerify: true, ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"update_strategy"},
}, },
}, },
}) })
@ -648,7 +647,6 @@ resource "google_compute_region_instance_group_manager" "igm-update-strategy" {
base_instance_name = "rigm-update-strategy" base_instance_name = "rigm-update-strategy"
region = "us-central1" region = "us-central1"
target_size = 2 target_size = 2
update_strategy = "NONE"
named_port { named_port {
name = "customhttp" name = "customhttp"
port = 8080 port = 8080

View File

@ -116,9 +116,6 @@ The following arguments are supported:
* `project` - (Optional) The ID of the project in which the resource belongs. If it * `project` - (Optional) The ID of the project in which the resource belongs. If it
is not provided, the provider project is used. is not provided, the provider project is used.
* `update_strategy` - (Optional, Default `"NONE"`) This field is deprecated as it has no functionality anymore.
It previously turned update behaviour on and off. This field is only present in the `google` provider.
* `target_size` - (Optional) The target number of running instances for this managed * `target_size` - (Optional) The target number of running instances for this managed
instance group. This value should always be explicitly set unless this resource is attached to instance group. This value should always be explicitly set unless this resource is attached to
an autoscaler, in which case it should never be set. Defaults to `0`. an autoscaler, in which case it should never be set. Defaults to `0`.