Skip to content

Commit

Permalink
Stateful MIG -> GA (#4047) (#2544)
Browse files Browse the repository at this point in the history
* Moved stateful MIG resources out of beta

* Ran gofmt on per_instance_config test files

* Promoted instance group manager fields out of beta

* Updated portions of region instance group manager that are out of beta

* Updated docs to not mark stateful_disk as a beta-only field

* Updated links to instance group manager beta docs

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Oct 5, 2020
1 parent 26738ae commit 422c93b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 11 deletions.
12 changes: 12 additions & 0 deletions .changelog/4047.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
```release-note:enhancement
compute: Marked `stateful_disk` as GA in `google_compute_ instance_group_manager`
```
```release-note:enhancement
compute: Marked `stateful_disk` as GA in `google_compute_ region_instance_group_manager`
```
```release-note:enhancement
compute: Marked `google_compute_ per_instance_config` as GA
```
```release-note:enhancement
compute: Marked `google_compute_ region_per_instance_config` as GA
```
1 change: 0 additions & 1 deletion google-beta/resource_compute_instance_group_manager.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
package google

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//
package google

import (
Expand Down
4 changes: 2 additions & 2 deletions website/docs/r/compute_instance_group_manager.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ The following arguments are supported:
* `auto_healing_policies` - (Optional) The autohealing policies for this managed instance
group. You can specify only one value. Structure is documented below. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances#monitoring_groups).

* `stateful_disk` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-disks-in-migs).
* `stateful_disk` - (Optional)) Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-disks-in-migs).

* `update_policy` - (Optional) The update policy for this managed instance group. Structure is documented below. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/updating-managed-instance-groups) and [API](https://cloud.google.com/compute/docs/reference/rest/beta/instanceGroupManagers/patch)
* `update_policy` - (Optional) The update policy for this managed instance group. Structure is documented below. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/updating-managed-instance-groups) and [API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceGroupManagers/patch)

- - -

Expand Down
4 changes: 1 addition & 3 deletions website/docs/r/compute_per_instance_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ description: |-
A config defined for a single managed instance that belongs to an instance group manager. It preserves the instance name
across instance group manager operations and can define stateful disks or metadata that are unique to the instance.

~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.

To get more information about PerInstanceConfig, see:

* [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/instanceGroupManagers)
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/instanceGroupManagers)
* How-to Guides
* [Official Documentation](https://cloud.google.com/compute/docs/instance-groups/stateful-migs#per-instance_configs)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ group. You can specify only one value. Structure is documented below. For more i
* `distribution_policy_zones` - (Optional) The distribution policy for this managed instance
group. You can specify one or more values. For more information, see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/distributing-instances-with-regional-instance-groups#selectingzones).

* `stateful_disk` - (Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html)) Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-disks-in-migs). Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the `update_policy`.
* `stateful_disk` - (Optional) Disks created on the instances that will be preserved on instance delete, update, etc. Structure is documented below. For more information see the [official documentation](https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-disks-in-migs). Proactive cross zone instance redistribution must be disabled before you can update stateful disks on existing instance group managers. This can be controlled via the `update_policy`.

- - -

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ A config defined for a single managed instance that belongs to an instance group
across instance group manager operations and can define stateful disks or metadata that are unique to the instance.
This resource works with regional instance group managers.

~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.

To get more information about RegionPerInstanceConfig, see:

* [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/instanceGroupManagers)
* [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/instanceGroupManagers)
* How-to Guides
* [Official Documentation](https://cloud.google.com/compute/docs/instance-groups/stateful-migs#per-instance_configs)

Expand Down

0 comments on commit 422c93b

Please sign in to comment.