Documentation ¶
Index ¶
- Constants
- Variables
- func AddInstanceStorageVolumes(vmCtx context.VirtualMachineContext, vmClass *vmopv1alpha1.VirtualMachineClass) error
- func GetVMClassConfigSpec(raw json.RawMessage) (*types.VirtualMachineConfigSpec, error)
- func GetVMImageStatusAndContentLibraryUUID(vmCtx context.VirtualMachineContext, k8sClient ctrlclient.Client) (*vmopv1alpha1.VirtualMachineImageStatus, string, error)
- func GetVMMetadata(vmCtx context.VirtualMachineContext, k8sClient ctrlclient.Client) (vmMetadata, error)
- func GetVMSetResourcePolicy(vmCtx context.VirtualMachineContext, k8sClient ctrlclient.Client) (*vmopv1alpha1.VirtualMachineSetResourcePolicy, error)
- func GetVirtualMachineClass(vmCtx context.VirtualMachineContext, k8sClient ctrlclient.Client) (*vmopv1alpha1.VirtualMachineClass, error)
- func NewVSphereVMProviderFromClient(client ctrlruntime.Client, recorder record.Recorder) vmprovider.VirtualMachineProviderInterface
- func ResVMToVirtualMachineImage(ctx goctx.Context, vm *object.VirtualMachine) (*v1alpha1.VirtualMachineImage, error)
Constants ¶
View Source
const (
VsphereVMProviderName = "vsphere"
)
Variables ¶
View Source
var SkipVMImageCLProviderCheck = false
SkipVMImageCLProviderCheck skips the checks that a VM Image has a provider and source, since a VM Image created for a VM template won't have either. This has been broken for a long time but was otherwise masked on how the tests used to be organized.
Functions ¶
func AddInstanceStorageVolumes ¶
func AddInstanceStorageVolumes( vmCtx context.VirtualMachineContext, vmClass *vmopv1alpha1.VirtualMachineClass) error
AddInstanceStorageVolumes checks if VM class is configured with instance volumes and appends the volumes to the VM's Spec if it was not already done.
func GetVMClassConfigSpec ¶
func GetVMClassConfigSpec(raw json.RawMessage) (*types.VirtualMachineConfigSpec, error)
func GetVMImageStatusAndContentLibraryUUID ¶
func GetVMImageStatusAndContentLibraryUUID( vmCtx context.VirtualMachineContext, k8sClient ctrlclient.Client) (*vmopv1alpha1.VirtualMachineImageStatus, string, error)
func GetVMMetadata ¶
func GetVMMetadata( vmCtx context.VirtualMachineContext, k8sClient ctrlclient.Client) (vmMetadata, error)
func GetVMSetResourcePolicy ¶
func GetVMSetResourcePolicy( vmCtx context.VirtualMachineContext, k8sClient ctrlclient.Client) (*vmopv1alpha1.VirtualMachineSetResourcePolicy, error)
func GetVirtualMachineClass ¶
func GetVirtualMachineClass( vmCtx context.VirtualMachineContext, k8sClient ctrlclient.Client) (*vmopv1alpha1.VirtualMachineClass, error)
func NewVSphereVMProviderFromClient ¶
func NewVSphereVMProviderFromClient( client ctrlruntime.Client, recorder record.Recorder) vmprovider.VirtualMachineProviderInterface
func ResVMToVirtualMachineImage ¶
func ResVMToVirtualMachineImage(ctx goctx.Context, vm *object.VirtualMachine) (*v1alpha1.VirtualMachineImage, error)
ResVMToVirtualMachineImage isn't currently used.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.