Documentation ¶
Index ¶
- func MutateVM(ctx context.Context, vm *virtv1alpha1.VirtualMachine, ...) error
- func ValidateCIDR(cidr string, capacity int, fieldPath *field.Path) field.ErrorList
- func ValidateCPU(ctx context.Context, cpu *virtv1alpha1.CPU, fieldPath *field.Path) field.ErrorList
- func ValidateCloudInitVolumeSource(ctx context.Context, source *virtv1alpha1.CloudInitVolumeSource, ...) field.ErrorList
- func ValidateContainerDiskVolumeSource(ctx context.Context, source *virtv1alpha1.ContainerDiskVolumeSource, ...) field.ErrorList
- func ValidateContainerRootfsVolumeSource(ctx context.Context, source *virtv1alpha1.ContainerRootfsVolumeSource, ...) field.ErrorList
- func ValidateDataVolumeSource(ctx context.Context, source *virtv1alpha1.DataVolumeVolumeSource, ...) field.ErrorList
- func ValidateDisk(ctx context.Context, disk *virtv1alpha1.Disk, fieldPath *field.Path) field.ErrorList
- func ValidateFileSystem(ctx context.Context, fs *virtv1alpha1.FileSystem, fieldPath *field.Path) field.ErrorList
- func ValidateInstance(ctx context.Context, instance *virtv1alpha1.Instance, fieldPath *field.Path) field.ErrorList
- func ValidateInterface(ctx context.Context, iface *virtv1alpha1.Interface, fieldPath *field.Path) field.ErrorList
- func ValidateInterfaceBindingMethod(ctx context.Context, bindingMethod *virtv1alpha1.InterfaceBindingMethod, ...) field.ErrorList
- func ValidateKernel(ctx context.Context, kernel *virtv1alpha1.Kernel, fieldPath *field.Path) field.ErrorList
- func ValidateMAC(mac string, fieldPath *field.Path) field.ErrorList
- func ValidateMemory(ctx context.Context, memory *virtv1alpha1.Memory, fieldPath *field.Path) field.ErrorList
- func ValidateMultusNetworkSource(ctx context.Context, source *virtv1alpha1.MultusNetworkSource, ...) field.ErrorList
- func ValidateNetwork(ctx context.Context, network *virtv1alpha1.Network, fieldPath *field.Path) field.ErrorList
- func ValidateNetworkSource(ctx context.Context, source *virtv1alpha1.NetworkSource, fieldPath *field.Path) field.ErrorList
- func ValidatePersistentVolumeClaimSource(ctx context.Context, source *virtv1alpha1.PersistentVolumeClaimVolumeSource, ...) field.ErrorList
- func ValidatePodNetworkSource(ctx context.Context, source *virtv1alpha1.PodNetworkSource, ...) field.ErrorList
- func ValidateVM(ctx context.Context, vm *virtv1alpha1.VirtualMachine, ...) field.ErrorList
- func ValidateVMM(ctx context.Context, c client.Client, ...) field.ErrorList
- func ValidateVMMSpec(ctx context.Context, c client.Client, namespace string, ...) field.ErrorList
- func ValidateVMName(ctx context.Context, c client.Client, namespace string, vmName string, ...) field.ErrorList
- func ValidateVMSpec(ctx context.Context, spec *virtv1alpha1.VirtualMachineSpec, ...) field.ErrorList
- func ValidateVolume(ctx context.Context, volume *virtv1alpha1.Volume, fieldPath *field.Path) field.ErrorList
- func ValidateVolumeSource(ctx context.Context, source *virtv1alpha1.VolumeSource, fieldPath *field.Path) field.ErrorList
- type VMMReconciler
- type VMMValidator
- type VMMutator
- type VMReconciler
- type VMValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutateVM ¶
func MutateVM(ctx context.Context, vm *virtv1alpha1.VirtualMachine, oldVM *virtv1alpha1.VirtualMachine) error
func ValidateCIDR ¶
func ValidateCPU ¶
func ValidateCloudInitVolumeSource ¶
func ValidateCloudInitVolumeSource(ctx context.Context, source *virtv1alpha1.CloudInitVolumeSource, fieldPath *field.Path) field.ErrorList
func ValidateContainerDiskVolumeSource ¶
func ValidateContainerDiskVolumeSource(ctx context.Context, source *virtv1alpha1.ContainerDiskVolumeSource, fieldPath *field.Path) field.ErrorList
func ValidateContainerRootfsVolumeSource ¶
func ValidateContainerRootfsVolumeSource(ctx context.Context, source *virtv1alpha1.ContainerRootfsVolumeSource, fieldPath *field.Path) field.ErrorList
func ValidateDataVolumeSource ¶
func ValidateDataVolumeSource(ctx context.Context, source *virtv1alpha1.DataVolumeVolumeSource, fieldPath *field.Path) field.ErrorList
func ValidateDisk ¶
func ValidateFileSystem ¶
func ValidateFileSystem(ctx context.Context, fs *virtv1alpha1.FileSystem, fieldPath *field.Path) field.ErrorList
func ValidateInstance ¶
func ValidateInterface ¶
func ValidateInterfaceBindingMethod ¶
func ValidateInterfaceBindingMethod(ctx context.Context, bindingMethod *virtv1alpha1.InterfaceBindingMethod, fieldPath *field.Path) field.ErrorList
func ValidateKernel ¶
func ValidateMemory ¶
func ValidateMultusNetworkSource ¶
func ValidateMultusNetworkSource(ctx context.Context, source *virtv1alpha1.MultusNetworkSource, fieldPath *field.Path) field.ErrorList
func ValidateNetwork ¶
func ValidateNetworkSource ¶
func ValidateNetworkSource(ctx context.Context, source *virtv1alpha1.NetworkSource, fieldPath *field.Path) field.ErrorList
func ValidatePersistentVolumeClaimSource ¶
func ValidatePersistentVolumeClaimSource(ctx context.Context, source *virtv1alpha1.PersistentVolumeClaimVolumeSource, fieldPath *field.Path) field.ErrorList
func ValidatePodNetworkSource ¶
func ValidatePodNetworkSource(ctx context.Context, source *virtv1alpha1.PodNetworkSource, fieldPath *field.Path) field.ErrorList
func ValidateVM ¶
func ValidateVM(ctx context.Context, vm *virtv1alpha1.VirtualMachine, oldVM *virtv1alpha1.VirtualMachine) field.ErrorList
func ValidateVMM ¶
func ValidateVMM(ctx context.Context, c client.Client, vmm *virtv1alpha1.VirtualMachineMigration, oldVMM *virtv1alpha1.VirtualMachineMigration) field.ErrorList
func ValidateVMMSpec ¶
func ValidateVMName ¶
func ValidateVMSpec ¶
func ValidateVMSpec(ctx context.Context, spec *virtv1alpha1.VirtualMachineSpec, fieldPath *field.Path) field.ErrorList
func ValidateVolume ¶
func ValidateVolumeSource ¶
func ValidateVolumeSource(ctx context.Context, source *virtv1alpha1.VolumeSource, fieldPath *field.Path) field.ErrorList
Types ¶
type VMMReconciler ¶
func (*VMMReconciler) SetupWithManager ¶
func (r *VMMReconciler) SetupWithManager(mgr ctrl.Manager) error
type VMMValidator ¶
func (*VMMValidator) InjectDecoder ¶
func (h *VMMValidator) InjectDecoder(decoder *admission.Decoder) error
type VMMutator ¶
type VMMutator struct {
// contains filtered or unexported fields
}
type VMReconciler ¶
type VMReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder PrerunnerImageName string }
func (*VMReconciler) SetupWithManager ¶
func (r *VMReconciler) SetupWithManager(mgr ctrl.Manager) error
type VMValidator ¶
type VMValidator struct {
// contains filtered or unexported fields
}
func (*VMValidator) InjectDecoder ¶
func (h *VMValidator) InjectDecoder(decoder *admission.Decoder) error
Click to show internal directories.
Click to hide internal directories.