-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
azure: restore disk with zone #1298
Conversation
thanks @sylr! Any chance you were able to test this on a cluster supporting availability zones? |
No, I should have created a draft PR. This is not for merge yet unless someone can test it does not break anything/is working. |
OK, no problem. Let us know if you're able to test it. I can help out eventually, just need to find the time to figure out how to spin up such a cluster.. |
I was able to get an Azure AZ-based cluster up and running. This code does not work as-is -- it needs to be rebased (the file has been renamed to |
OK, I did a quick test with modified code that looked like this: // TODO add comment
parts := strings.Split(volumeAZ, "-")
if len(parts) == 2 {
disk.Zones = &[]string{parts[1]}
} And it worked correctly for both AZ clusters/disks, and non-AZ clusters/disks. @sylr, if you can update this PR, then we can get it merged and in for v1.0! |
pls also add a changelog file, |
9896fdb
to
80a30f6
Compare
@skriss I made it so that it alway take the last item in the array. |
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
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.
LGTM. I was able to successfully test for both AZ disks and non-AZ disks. Thanks @sylr!
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.
👍
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Sylvain Rabot sylvain@abstraction.fr
Closes #1159