mirror of https://github.com/kubernetes/kops.git
azure: Hardcode DiskControllerType to SCSI
This commit is contained in:
parent
50454d8cfc
commit
df97b95972
|
|
@ -192,9 +192,9 @@ func getStorageProfile(spec *kops.InstanceGroupSpec) (*compute.VirtualMachineSca
|
|||
}
|
||||
|
||||
return &compute.VirtualMachineScaleSetStorageProfile{
|
||||
ImageReference: imageReference,
|
||||
DiskControllerType: fi.PtrTo(string(compute.SCSI)),
|
||||
ImageReference: imageReference,
|
||||
OsDisk: &compute.VirtualMachineScaleSetOSDisk{
|
||||
// TODO(kenji): Support Windows.
|
||||
OsType: compute.OperatingSystemTypes(compute.Linux),
|
||||
CreateOption: compute.DiskCreateOptionTypesFromImage,
|
||||
DiskSizeGB: to.Int32Ptr(volumeSize),
|
||||
|
|
|
|||
|
|
@ -154,6 +154,7 @@ func TestGetStorageProfile(t *testing.T) {
|
|||
},
|
||||
},
|
||||
profile: &compute.VirtualMachineScaleSetStorageProfile{
|
||||
DiskControllerType: fi.PtrTo(string(compute.SCSI)),
|
||||
ImageReference: &compute.ImageReference{
|
||||
Publisher: to.StringPtr("Canonical"),
|
||||
Offer: to.StringPtr("UbuntuServer"),
|
||||
|
|
@ -177,6 +178,7 @@ func TestGetStorageProfile(t *testing.T) {
|
|||
Role: kops.InstanceGroupRoleControlPlane,
|
||||
},
|
||||
profile: &compute.VirtualMachineScaleSetStorageProfile{
|
||||
DiskControllerType: fi.PtrTo(string(compute.SCSI)),
|
||||
ImageReference: &compute.ImageReference{
|
||||
Publisher: to.StringPtr("Canonical"),
|
||||
Offer: to.StringPtr("UbuntuServer"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue