Skip to content

add tiering_policy to volume replication create #13515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mmv1/products/netapp/Volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ properties:
- name: 'coolingThresholdDays'
type: Integer
description: |
Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 7-183.
Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 2-183.
Default is 31.
- name: 'tierAction'
type: Enum
Expand Down
21 changes: 21 additions & 0 deletions mmv1/products/netapp/VolumeReplication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,27 @@ properties:
description: |
Description for the destination volume.
immutable: true
- name: 'tieringPolicy'
type: NestedObject
description: |-
Tiering policy for the volume.
update_mask_fields:
- 'tiering_policy.cooling_threshold_days'
- 'tiering_policy.tier_action'
properties:
- name: 'coolingThresholdDays'
type: Integer
description: |
Optional. Time in days to mark the volume's data block as cold and make it eligible for tiering, can be range from 2-183.
Default is 31.
- name: 'tierAction'
type: Enum
description: |
Optional. Flag indicating if the volume has tiering policy enable/pause. Default is PAUSED.
default_value: "PAUSED"
enum_values:
- 'ENABLED'
- 'PAUSED'
- name: 'sourceVolume'
type: String
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ resource "google_netapp_volume_replication" "{{$.PrimaryResourceId}}" {
# simplifies implementing client failover concepts
share_name = "{{index $.Vars "volume_name"}}"
description = "This is a replicated volume"
tiering_policy {
cooling_threshold_days = 20
tier_action = "ENABLED"
}
}
# WARNING: Setting delete_destination_volume to true, will delete the
# CURRENT destination volume if the replication is deleted. Omit the field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ resource "google_netapp_volume_replication" "test_replication" {
# simplifies implementing client failover concepts
share_name = "tf-test-source-volume%{random_suffix}"
description = "This is a replicated volume"
tiering_policy {
cooling_threshold_days = 20
tier_action = "ENABLED"
}
}
delete_destination_volume = true
wait_for_mirror = true
Expand Down Expand Up @@ -172,6 +176,10 @@ resource "google_netapp_volume_replication" "test_replication" {
# simplifies implementing client failover concepts
share_name = "tf-test-source-volume%{random_suffix}"
description = "This is a replicated volume"
tiering_policy {
cooling_threshold_days = 20
tier_action = "ENABLED"
}
}
replication_enabled = true
delete_destination_volume = true
Expand Down Expand Up @@ -234,6 +242,10 @@ resource "google_netapp_volume_replication" "test_replication" {
# simplifies implementing client failover concepts
share_name = "tf-test-source-volume%{random_suffix}"
description = "This is a replicated volume"
tiering_policy {
cooling_threshold_days = 20
tier_action = "ENABLED"
}
}
replication_enabled = false
delete_destination_volume = true
Expand Down Expand Up @@ -296,6 +308,10 @@ resource "google_netapp_volume_replication" "test_replication" {
# simplifies implementing client failover concepts
share_name = "tf-test-source-volume%{random_suffix}"
description = "This is a replicated volume"
tiering_policy {
cooling_threshold_days = 20
tier_action = "ENABLED"
}
}
replication_enabled = true
delete_destination_volume = true
Expand Down
Loading