Skip to content

Conversation

@Jan-M
Copy link
Member

@Jan-M Jan-M commented Dec 7, 2020

Support migration of existing gp2 volumes below a certain threshold to be migrated to gp3.

@Jan-M Jan-M force-pushed the quick-gp3-support branch from b1a8843 to 6bb78c8 Compare December 7, 2020 13:57
@Jan-M Jan-M changed the title initial commit for gp3 migration. Support EBS gp2 to gp3 migration on sync for below 1tb volumes Dec 9, 2020
@Jan-M
Copy link
Member Author

Jan-M commented Dec 9, 2020

👍

}
}

if c.OpConfig.StorageResizeMode == "mixed" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fail to see the difference to c.OpConfig.StorageResizeMode == "pvc". If there is another case for StorageResizeMode, it should be documented.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future work, we need "mixed" to do call to EBS for volume changes and rely on PVC to do file system extension without privileged pods.

}
}

func CreatePVCs(namespace string, clusterName string, labels labels.Set, n int, size string) v1.PersistentVolumeClaimList {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could reuse this for the already existing TestResizeVolumeClaim test

@FxKu
Copy link
Member

FxKu commented Dec 11, 2020

I will add the new config fields to CRD validation and helm chart and update volume_test.go to reuse your CreatePVC method in other tests.

@Jan-M
Copy link
Member Author

Jan-M commented Dec 11, 2020

👍

1 similar comment
@FxKu
Copy link
Member

FxKu commented Dec 11, 2020

👍

@FxKu FxKu merged commit 549f71b into master Dec 11, 2020
@FxKu FxKu added this to the 1.6 milestone Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants