virtualmachineimport

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2021 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// AnnCurrentProgress is annotations storing current progress of the vm import
	AnnCurrentProgress = annAPIGroup + "/progress"
	// AnnPropagate is annotation defining which values to propagate
	AnnPropagate = annAPIGroup + "/propagate-annotations"
	// AnnDVNetwork is propagated to the DataVolume importer pods.
	AnnDVNetwork = "k8s.v1.cni.cncf.io/networks"
	// AnnDVMultusNetwork is propagated to the DataVolume importer pods.
	AnnDVMultusNetwork = "v1.multus-cni.io/default-network"
	// TrackingLabel is a label used to track related entities.
	TrackingLabel = annAPIGroup + "/tracker"

	// EventImportScheduled is emitted when import scheduled
	EventImportScheduled = "ImportScheduled"
	// EventImportInProgress is emitted when import is in progress
	EventImportInProgress = "ImportInProgress"
	// EventImportSucceeded is emitted when import succeed
	EventImportSucceeded = "ImportSucceeded"
	// EventImportBlocked is emitted when import is blocked
	EventImportBlocked = "ImportBlocked"
	// EventVMStartFailed is emitted when vm failed to start
	EventVMStartFailed = "VMStartFailed"
	// EventVMCreationFailed is emitted when creation of vm fails
	EventVMCreationFailed = "VMCreationFailed"
	// EventDVCreationFailed is emitted when creation of datavolume fails
	EventDVCreationFailed = "DVCreationFailed"
	// EventPVCImportFailed is emitted when import of pvc fails
	EventPVCImportFailed = "EventPVCImportFailed"
	// EventGuestConversionFailed is emitted when the virt-v2v conversion job fails.
	EventGuestConversionFailed = "GuestConversionFailed"
	// EventWarmImportFailed is emmitted when a warm import attempt fails.
	EventWarmImportFailed = "WarmImportFailed"
	// EventVMNotFound is emitted when the target VM cannot be found, perhaps due to being deleted during an import.
	EventVMNotFound = "VMNotFound"

	SlowReQ = time.Second * 10
	FastReQ = time.Second * 2
	NoReQ   = time.Second * 0
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, kvConfigProvider kvConfig.KubeVirtConfigProvider, ctrlConfigProvider ctrlConfig.ControllerConfigProvider) error

Add creates a new VirtualMachineImport Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileVirtualMachineImport

type ReconcileVirtualMachineImport struct {
	// contains filtered or unexported fields
}

ReconcileVirtualMachineImport reconciles a VirtualMachineImport object

func (*ReconcileVirtualMachineImport) Reconcile

Reconcile reads that state of the cluster for a VirtualMachineImport object and makes changes based on the state read and what is in the VirtualMachineImport.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL