-
Notifications
You must be signed in to change notification settings - Fork 117
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
Added support for Data Disks in Azure and AliCloud #397
Added support for Data Disks in Azure and AliCloud #397
Conversation
(cherry picked from commit 7c658e2911155d7acb49a6f54ade3190e4c76718)
thanks @guydaichs for the PR, we shall review it soon. |
Thanks @guydaichs for PR/feature. As this does not fall under our existing CI scope[multiple-disks], we shall test it out separately soon, and update the thread here. @jia-jerry @dkistner Can you please take a brief look for the Alicloud and Azure part respectively :-) |
cc @rewiko |
Looks like there is an issue here - |
I will try to check the azure specific part soon. |
LGTM just a few comments |
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 for the nice PR @guydaichs
@hardikdr - It looks like the attachment process in azure finds an available lun : https://github.com/kubernetes-sigs/azuredisk-csi-driver/blob/master/vendor/k8s.io/legacy-cloud-providers/azure/azure_controller_common.go#L280. My assumptions are:
Do you think that we need an additional safety mechanism? |
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.
Overall looks good to me, I have few minor comments inline, thanks for the much-needed feature.
|
Overall, thanks a lot to @guydaichs for the PR, and thanks to everyone for reviewing it. I'd suggest following, to further complete the review and go ahead merging it. @guydaichs Can you please address the remaining review-comments on the PR. Also,
@dkistner @jia-jerry Can you please follow-up (resolve the conversations if taken care of or concern is not valid anymore) and approve the PR from the Azure's and Alicloud's perspective respectively when it's ready. Thanks a lot in advance. |
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.
one minor issue
@@ -63,6 +66,43 @@ func validateAlicloudMachineClassSpec(spec *machine.AlicloudMachineClassSpec, fl | |||
allErrs = append(allErrs, field.Required(fldPath.Child("keyPairName"), "KeyPairName is required")) | |||
} | |||
|
|||
const dataDiskNameFmt string = `[a-zA-Z0-9\.\-_:]+` |
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.
it should starts with a letter. The regexp looks like [a-zA-Z][a-zA-Z0-9\.\-_:]+
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
We will tackle the things with optional luns for Azure later in a subsequent issue and pr.
Thanks @guydaichs :)
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
@ggaurav10 @prashanth26 @rewiko Can you please take one final look at PR, and approve if possible? |
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.
Nice PR @guydaichs :)
What this PR does / why we need it:
Enable MCM support for Data Disks in AliCloud and Azure. Aligns MCM’s capability to create and attach multiple devices across all major IaaS providers, for use cases such as memory expansion, resource isolation and encryption.
Use a test suite for all driver tests.
Which issue(s) this PR fixes:
Fixes #396
Part of gardener/gardener#1743
Special notes for your reviewer:
Release note: