mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-01 22:03:54 +00:00
Merge pull request #94265 from andyzhangx/only-update-data-disk
only update Azure data disks when attach/detach
This commit is contained in:
@@ -85,7 +85,6 @@ func (as *availabilitySet) AttachDisk(isManagedDisk bool, diskName, diskURI stri
|
|||||||
|
|
||||||
newVM := compute.VirtualMachineUpdate{
|
newVM := compute.VirtualMachineUpdate{
|
||||||
VirtualMachineProperties: &compute.VirtualMachineProperties{
|
VirtualMachineProperties: &compute.VirtualMachineProperties{
|
||||||
HardwareProfile: vm.HardwareProfile,
|
|
||||||
StorageProfile: &compute.StorageProfile{
|
StorageProfile: &compute.StorageProfile{
|
||||||
DataDisks: &disks,
|
DataDisks: &disks,
|
||||||
},
|
},
|
||||||
@@ -155,7 +154,6 @@ func (as *availabilitySet) DetachDisk(diskName, diskURI string, nodeName types.N
|
|||||||
|
|
||||||
newVM := compute.VirtualMachineUpdate{
|
newVM := compute.VirtualMachineUpdate{
|
||||||
VirtualMachineProperties: &compute.VirtualMachineProperties{
|
VirtualMachineProperties: &compute.VirtualMachineProperties{
|
||||||
HardwareProfile: vm.HardwareProfile,
|
|
||||||
StorageProfile: &compute.StorageProfile{
|
StorageProfile: &compute.StorageProfile{
|
||||||
DataDisks: &disks,
|
DataDisks: &disks,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -85,12 +85,8 @@ func (ss *scaleSet) AttachDisk(isManagedDisk bool, diskName, diskURI string, nod
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
newVM := compute.VirtualMachineScaleSetVM{
|
newVM := compute.VirtualMachineScaleSetVM{
|
||||||
Sku: vm.Sku,
|
|
||||||
Location: vm.Location,
|
|
||||||
VirtualMachineScaleSetVMProperties: &compute.VirtualMachineScaleSetVMProperties{
|
VirtualMachineScaleSetVMProperties: &compute.VirtualMachineScaleSetVMProperties{
|
||||||
HardwareProfile: vm.HardwareProfile,
|
|
||||||
StorageProfile: &compute.StorageProfile{
|
StorageProfile: &compute.StorageProfile{
|
||||||
OsDisk: vm.StorageProfile.OsDisk,
|
|
||||||
DataDisks: &disks,
|
DataDisks: &disks,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@@ -159,12 +155,8 @@ func (ss *scaleSet) DetachDisk(diskName, diskURI string, nodeName types.NodeName
|
|||||||
}
|
}
|
||||||
|
|
||||||
newVM := compute.VirtualMachineScaleSetVM{
|
newVM := compute.VirtualMachineScaleSetVM{
|
||||||
Sku: vm.Sku,
|
|
||||||
Location: vm.Location,
|
|
||||||
VirtualMachineScaleSetVMProperties: &compute.VirtualMachineScaleSetVMProperties{
|
VirtualMachineScaleSetVMProperties: &compute.VirtualMachineScaleSetVMProperties{
|
||||||
HardwareProfile: vm.HardwareProfile,
|
|
||||||
StorageProfile: &compute.StorageProfile{
|
StorageProfile: &compute.StorageProfile{
|
||||||
OsDisk: vm.StorageProfile.OsDisk,
|
|
||||||
DataDisks: &disks,
|
DataDisks: &disks,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user