Documentation ¶
Index ¶
- func UpdateConfigSpecAnnotation(config *vimTypes.VirtualMachineConfigInfo, ...)
- func UpdateConfigSpecCPUAllocation(config *vimTypes.VirtualMachineConfigInfo, ...)
- func UpdateConfigSpecChangeBlockTracking(config *vimTypes.VirtualMachineConfigInfo, ...)
- func UpdateConfigSpecExtraConfig(config *vimTypes.VirtualMachineConfigInfo, ...)
- func UpdateConfigSpecFirmware(config *vimTypes.VirtualMachineConfigInfo, ...)
- func UpdateConfigSpecManagedBy(config *vimTypes.VirtualMachineConfigInfo, ...)
- func UpdateConfigSpecMemoryAllocation(config *vimTypes.VirtualMachineConfigInfo, ...)
- func UpdateEthCardDeviceChanges(expectedEthCards object.VirtualDeviceList, ...) ([]vimTypes.BaseVirtualDeviceConfigSpec, error)
- func UpdateHardwareConfigSpec(config *vimTypes.VirtualMachineConfigInfo, ...)
- func UpdatePCIDeviceChanges(expectedPciDevices object.VirtualDeviceList, ...) ([]vimTypes.BaseVirtualDeviceConfigSpec, error)
- type Session
- type VMUpdateArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateConfigSpecAnnotation ¶
func UpdateConfigSpecAnnotation( config *vimTypes.VirtualMachineConfigInfo, configSpec *vimTypes.VirtualMachineConfigSpec)
func UpdateConfigSpecCPUAllocation ¶
func UpdateConfigSpecCPUAllocation( config *vimTypes.VirtualMachineConfigInfo, configSpec *vimTypes.VirtualMachineConfigSpec, vmClassSpec *vmopv1.VirtualMachineClassSpec, minCPUFreq uint64)
func UpdateConfigSpecChangeBlockTracking ¶
func UpdateConfigSpecChangeBlockTracking( config *vimTypes.VirtualMachineConfigInfo, configSpec, classConfigSpec *vimTypes.VirtualMachineConfigSpec, vmSpec vmopv1.VirtualMachineSpec)
func UpdateConfigSpecExtraConfig ¶
func UpdateConfigSpecExtraConfig( config *vimTypes.VirtualMachineConfigInfo, configSpec, classConfigSpec *vimTypes.VirtualMachineConfigSpec, vmClassSpec *vmopv1.VirtualMachineClassSpec, vm *vmopv1.VirtualMachine, globalExtraConfig map[string]string, imageV1Alpha1Compatible bool)
func UpdateConfigSpecFirmware ¶
func UpdateConfigSpecFirmware( config *vimTypes.VirtualMachineConfigInfo, configSpec *vimTypes.VirtualMachineConfigSpec, vm *vmopv1.VirtualMachine)
func UpdateConfigSpecManagedBy ¶
func UpdateConfigSpecManagedBy( config *vimTypes.VirtualMachineConfigInfo, configSpec *vimTypes.VirtualMachineConfigSpec)
func UpdateConfigSpecMemoryAllocation ¶
func UpdateConfigSpecMemoryAllocation( config *vimTypes.VirtualMachineConfigInfo, configSpec *vimTypes.VirtualMachineConfigSpec, vmClassSpec *vmopv1.VirtualMachineClassSpec)
func UpdateEthCardDeviceChanges ¶
func UpdateEthCardDeviceChanges( expectedEthCards object.VirtualDeviceList, currentEthCards object.VirtualDeviceList) ([]vimTypes.BaseVirtualDeviceConfigSpec, error)
func UpdateHardwareConfigSpec ¶
func UpdateHardwareConfigSpec( config *vimTypes.VirtualMachineConfigInfo, configSpec *vimTypes.VirtualMachineConfigSpec, vmClassSpec *vmopv1.VirtualMachineClassSpec)
func UpdatePCIDeviceChanges ¶
func UpdatePCIDeviceChanges( expectedPciDevices object.VirtualDeviceList, currentPciDevices object.VirtualDeviceList) ([]vimTypes.BaseVirtualDeviceConfigSpec, error)
UpdatePCIDeviceChanges returns devices changes for PCI devices attached to a VM. There are 2 types of PCI devices processed here and in case of cloning a VM, devices listed in VMClass are considered as source of truth.
Types ¶
type Session ¶
type Session struct { Client *client.Client K8sClient ctrlruntime.Client Finder *find.Finder // Fields only used during Update Cluster *object.ClusterComputeResource }
func (*Session) UpdateVirtualMachine ¶
func (s *Session) UpdateVirtualMachine( vmCtx context.VirtualMachineContextA2, vcVM *object.VirtualMachine, getUpdateArgsFn func() (*VMUpdateArgs, error)) (err error)
type VMUpdateArgs ¶
type VMUpdateArgs struct { VMClass *vmopv1.VirtualMachineClass ResourcePolicy *vmopv1.VirtualMachineSetResourcePolicy MinCPUFreq uint64 ExtraConfig map[string]string BootstrapData vmlifecycle.BootstrapData ConfigSpec *vimTypes.VirtualMachineConfigSpec NetworkResults network2.NetworkInterfaceResults // hack. Remove after VMSVC-1261. // indicating if this VM image used is VM service v1alpha1 compatible. VirtualMachineImageV1Alpha1Compatible bool }
VMUpdateArgs contains the arguments needed to update a VM on VC.
Click to show internal directories.
Click to hide internal directories.