Skip to content

Commit 112cd74

Browse files
modular-magicianpaddycarver
authored andcommitted
Remove update_strategy from rigm. (#2594)
<!-- This change is generated by MagicModules. --> /cc @rileykarson
1 parent 494ba48 commit 112cd74

3 files changed

+7
-13
lines changed

google/resource_compute_region_instance_group_manager.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,10 @@ func resourceComputeRegionInstanceGroupManager() *schema.Resource {
153153
},
154154

155155
"update_strategy": &schema.Schema{
156-
Type: schema.TypeString,
157-
Deprecated: "This field is deprecated as it has no functionality anymore. It will be removed in 3.0.0.",
158-
Optional: true,
159-
Computed: true,
160-
ValidateFunc: validation.StringInSlice([]string{"NONE", "ROLLING_UPDATE"}, false),
156+
Type: schema.TypeString,
157+
Deprecated: "This field is removed.",
158+
Optional: true,
159+
Computed: true,
161160
},
162161

163162
"target_pools": &schema.Schema{

google/resource_compute_region_instance_group_manager_test.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,9 @@ func TestAccRegionInstanceGroupManager_updateStrategy(t *testing.T) {
143143
Config: testAccRegionInstanceGroupManager_updateStrategy(igm),
144144
},
145145
{
146-
ResourceName: "google_compute_region_instance_group_manager.igm-update-strategy",
147-
ImportState: true,
148-
ImportStateVerify: true,
149-
ImportStateVerifyIgnore: []string{"update_strategy"},
146+
ResourceName: "google_compute_region_instance_group_manager.igm-update-strategy",
147+
ImportState: true,
148+
ImportStateVerify: true,
150149
},
151150
},
152151
})
@@ -648,7 +647,6 @@ resource "google_compute_region_instance_group_manager" "igm-update-strategy" {
648647
base_instance_name = "rigm-update-strategy"
649648
region = "us-central1"
650649
target_size = 2
651-
update_strategy = "NONE"
652650
named_port {
653651
name = "customhttp"
654652
port = 8080

website/docs/r/compute_region_instance_group_manager.html.markdown

-3
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ The following arguments are supported:
116116
* `project` - (Optional) The ID of the project in which the resource belongs. If it
117117
is not provided, the provider project is used.
118118

119-
* `update_strategy` - (Optional, Default `"NONE"`) This field is deprecated as it has no functionality anymore.
120-
It previously turned update behaviour on and off. This field is only present in the `google` provider.
121-
122119
* `target_size` - (Optional) The target number of running instances for this managed
123120
instance group. This value should always be explicitly set unless this resource is attached to
124121
an autoscaler, in which case it should never be set. Defaults to `0`.

0 commit comments

Comments
 (0)