Skip to content

Commit c5abf8e

Browse files
Add Flex AutoTier support for storagePool and Volume (#14212) (#23191)
[upstream:8996e60e5dd7ecc4ce1da26b55dd2de74ed80808] Signed-off-by: Modular Magician <[email protected]>
1 parent c0ee4b8 commit c5abf8e

File tree

6 files changed

+25
-3
lines changed

6 files changed

+25
-3
lines changed

.changelog/14212.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```release-note:enhancement
2+
netapp: added `enable_hot_tier_auto_resize` and `hot_tier_size_gib` fields to `google_netapp_storage_pool` resource (beta)
3+
```
4+
```release-note:enhancement
5+
netapp: added `tiering_policy.hot_tier_bypass_mode_enabled` field to `google_netapp_volume` resource (beta)
6+
```

google/services/netapp/resource_netapp_storage_pool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
// This code is generated by Magic Modules using the following:
1010
//
11-
// Source file: https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/third_party/terraform/services/netapp/resource_netapp_storage_pool_test.go
11+
// Source file: https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/third_party/terraform/services/netapp/resource_netapp_storage_pool_test.go.tmpl
1212
//
1313
// DO NOT EDIT this file directly. Any changes made to this file will be
1414
// overwritten during the next generation cycle.

google/services/netapp/resource_netapp_volume.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,8 @@ func resourceNetappVolumeUpdate(d *schema.ResourceData, meta interface{}) error
11651165

11661166
if d.HasChange("tiering_policy") {
11671167
updateMask = append(updateMask, "tiering_policy.cooling_threshold_days",
1168-
"tiering_policy.tier_action")
1168+
"tiering_policy.tier_action",
1169+
"tiering_policy.hot_tier_bypass_mode_enabled")
11691170
}
11701171

11711172
if d.HasChange("hybrid_replication_parameters") {

google/services/netapp/resource_netapp_volume_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
// This code is generated by Magic Modules using the following:
1010
//
11-
// Source file: https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go
11+
// Source file: https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl
1212
//
1313
// DO NOT EDIT this file directly. Any changes made to this file will be
1414
// overwritten during the next generation cycle.

website/docs/r/netapp_storage_pool.html.markdown

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,16 @@ The following arguments are supported:
184184
(Optional)
185185
Optional. Custom Performance Total IOPS of the pool If not provided, it will be calculated based on the totalThroughputMibps
186186

187+
* `hot_tier_size_gib` -
188+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
189+
Total hot tier capacity for the Storage Pool. It is applicable only to Flex service level.
190+
It should be less than the minimum storage pool size and cannot be more than the current storage pool size. It cannot be decreased once set.
191+
192+
* `enable_hot_tier_auto_resize` -
193+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
194+
Flag indicating that the hot-tier threshold will be auto-increased by 10% of the hot-tier when it hits 100%. Default is true.
195+
The increment will kick in only if the new size after increment is still less than or equal to storage pool size.
196+
187197
* `project` - (Optional) The ID of the project in which the resource belongs.
188198
If it is not provided, the provider project is used.
189199

website/docs/r/netapp_volume.html.markdown

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,11 @@ Possible values: DEFAULT, FORCE.
374374
Default value is `PAUSED`.
375375
Possible values are: `ENABLED`, `PAUSED`.
376376

377+
* `hot_tier_bypass_mode_enabled` -
378+
(Optional, [Beta](https://terraform.io/docs/providers/google/guides/provider_versions.html))
379+
Optional. Flag indicating that the hot tier bypass mode is enabled. Default is false.
380+
Only applicable to Flex service level.
381+
377382
<a name="nested_hybrid_replication_parameters"></a>The `hybrid_replication_parameters` block supports:
378383

379384
* `replication` -

0 commit comments

Comments
 (0)