-
Notifications
You must be signed in to change notification settings - Fork 97
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
Make Azure disk snapshot SKU configurable (#96) #96
base: main
Are you sure you want to change the base?
Conversation
Add a new supported key to the config ('sku') which allows to specify the SKU used for the Azure disk snapshot The values supported depend of the Azure zone, it can be: Premium_LRS, Standard_LRS or Standard_ZRS Signed-off-by: Pierre-Andre Vieillard-Baron <[email protected]>
Add a new supported key to the config ('sku') which allows to specify the SKU used for the Azure disk snapshot The values supported depend of the Azure zone, it can be: Premium_LRS, Standard_LRS or Standard_ZRS Signed-off-by: Vieillard-Baron Pierre-André <[email protected]>
Add a new supported key to the config ('sku') which allows to specify the SKU used for the Azure disk snapshot The values supported depend of the Azure zone, it can be: Premium_LRS, Standard_LRS or Standard_ZRS Signed-off-by: Vieillard-Baron Pierre-André <[email protected]>
Hi all, what we can to do to have this PR merged? Thank you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To add to the review from @jenting -- the requested changes seem to be missing a line, referenced in my comment.
@pavb74 |
Co-authored-by: JenTing Hsiao <[email protected]> Signed-off-by: Vieillard-Baron Pierre-André <[email protected]>
Co-authored-by: JenTing Hsiao <[email protected]> Signed-off-by: Vieillard-Baron Pierre-André <[email protected]>
Co-authored-by: JenTing Hsiao <[email protected]> Signed-off-by: Vieillard-Baron Pierre-André <[email protected]>
@jenting Done, sorry for the delay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @pab74, and sorry for keeping you waiting for a review. I have a questions about the behaviour of the SKU if different storage types are being used, primarily because this is a setting that will apply to all volumes types that are being snapshotted by the plugin, and is not set per backup.
Also, could you please update the Volume Snapshot Location documentation to include this new config field and the valid values. Thanks!
if val := config[snapsSkuConfigKey]; val != "" { | ||
var snapshotsSkuName disk.SnapshotStorageAccountTypes | ||
var found bool | ||
for _, name := range disk.PossibleSnapshotStorageAccountTypesValues() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the possible values and their descriptions, it seems like different SKU types apply to different storage types, e.g. Premium_LRS
is for Premium SSDs, Standard_LRS
is for standard HDDs. If a user sets the SKU but has a mix of storage types, what is the behaviour? Does it fall back to an appropriate SKU for that storage type?
Update of azure-sdk-for-go version must fix SKU issue without needed to add any new config. I create a PR with this version update => |
Add a new supported key to the config ('sku') which allows
to specify the SKU used for the Azure disk snapshot
The values supported depend of the Azure zone, it can be:
Premium_LRS, Standard_LRS or Standard_ZRS
Signed-off-by: Pierre-Andre Vieillard-Baron [email protected]