Documentation ¶
Index ¶
- Constants
- func ClearDedicatedMigrationNetwork() *v1.KubeVirt
- func ConfirmMigrationDataIsStored(virtClient kubecli.KubevirtClient, ...)
- func ConfirmMigrationMode(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance, ...)
- func ConfirmVMIPostMigration(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance, ...) *v1.VirtualMachineInstance
- func ConfirmVMIPostMigrationAborted(vmi *v1.VirtualMachineInstance, migrationUID string, timeout int) *v1.VirtualMachineInstance
- func ConfirmVMIPostMigrationFailed(vmi *v1.VirtualMachineInstance, migrationUID string) *v1.VirtualMachineInstance
- func CreateNodeAffinityRuleToMigrateFromSourceToTargetAndBack(sourceNode *k8sv1.Node, targetNode *k8sv1.Node) (nodefiinity *k8sv1.NodeAffinity, err error)
- func EnsureNoMigrationMetadataInPersistentXML(vmi *v1.VirtualMachineInstance)
- func ExpectMigrationToSucceed(virtClient kubecli.KubevirtClient, ...) *v1.VirtualMachineInstanceMigration
- func ExpectMigrationToSucceedWithDefaultTimeout(virtClient kubecli.KubevirtClient, ...) *v1.VirtualMachineInstanceMigration
- func ExpectMigrationToSucceedWithOffset(offset int, virtClient kubecli.KubevirtClient, ...) *v1.VirtualMachineInstanceMigration
- func GenerateMigrationCNINetworkAttachmentDefinition() *k8snetworkplumbingwgv1.NetworkAttachmentDefinition
- func GetValidSourceNodeAndTargetNodeForHostModelMigration(virtCli kubecli.KubevirtClient) (sourceNode *k8sv1.Node, targetNode *k8sv1.Node, err error)
- func New(vmiName string, namespace string) *v1.VirtualMachineInstanceMigration
- func RunMigration(virtClient kubecli.KubevirtClient, ...) *v1.VirtualMachineInstanceMigration
- func RunMigrationAndCollectMigrationMetrics(vmi *v1.VirtualMachineInstance, migration *v1.VirtualMachineInstanceMigration)
- func RunMigrationAndExpectFailure(migration *v1.VirtualMachineInstanceMigration, timeout int) string
- func RunMigrationAndExpectToComplete(virtClient kubecli.KubevirtClient, ...) *v1.VirtualMachineInstanceMigration
- func RunMigrationAndExpectToCompleteWithDefaultTimeout(virtClient kubecli.KubevirtClient, ...) *v1.VirtualMachineInstanceMigration
- func SetDedicatedMigrationNetwork(nad string) *v1.KubeVirt
- func WaitUntilMigrationMode(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance, ...) *v1.VirtualMachineInstance
Constants ¶
View Source
const MigrationWaitTime = 240
Variables ¶
This section is empty.
Functions ¶
func ConfirmMigrationDataIsStored ¶
func ConfirmMigrationDataIsStored(virtClient kubecli.KubevirtClient, migration *v1.VirtualMachineInstanceMigration, vmi *v1.VirtualMachineInstance)
func ConfirmMigrationMode ¶ added in v1.3.0
func ConfirmMigrationMode(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance, expectedMode v1.MigrationMode)
func ConfirmVMIPostMigration ¶
func ConfirmVMIPostMigration(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance, migration *v1.VirtualMachineInstanceMigration) *v1.VirtualMachineInstance
func ConfirmVMIPostMigrationAborted ¶
func ConfirmVMIPostMigrationAborted(vmi *v1.VirtualMachineInstance, migrationUID string, timeout int) *v1.VirtualMachineInstance
func ConfirmVMIPostMigrationFailed ¶
func ConfirmVMIPostMigrationFailed(vmi *v1.VirtualMachineInstance, migrationUID string) *v1.VirtualMachineInstance
func EnsureNoMigrationMetadataInPersistentXML ¶
func EnsureNoMigrationMetadataInPersistentXML(vmi *v1.VirtualMachineInstance)
func ExpectMigrationToSucceed ¶
func ExpectMigrationToSucceed(virtClient kubecli.KubevirtClient, migration *v1.VirtualMachineInstanceMigration, timeout int) *v1.VirtualMachineInstanceMigration
func ExpectMigrationToSucceedWithDefaultTimeout ¶
func ExpectMigrationToSucceedWithDefaultTimeout(virtClient kubecli.KubevirtClient, migration *v1.VirtualMachineInstanceMigration) *v1.VirtualMachineInstanceMigration
func ExpectMigrationToSucceedWithOffset ¶
func ExpectMigrationToSucceedWithOffset(offset int, virtClient kubecli.KubevirtClient, migration *v1.VirtualMachineInstanceMigration, timeout int) *v1.VirtualMachineInstanceMigration
func GenerateMigrationCNINetworkAttachmentDefinition ¶
func GenerateMigrationCNINetworkAttachmentDefinition() *k8snetworkplumbingwgv1.NetworkAttachmentDefinition
func New ¶ added in v1.2.0
func New(vmiName string, namespace string) *v1.VirtualMachineInstanceMigration
func RunMigration ¶
func RunMigration(virtClient kubecli.KubevirtClient, migration *v1.VirtualMachineInstanceMigration) *v1.VirtualMachineInstanceMigration
func RunMigrationAndCollectMigrationMetrics ¶
func RunMigrationAndCollectMigrationMetrics(vmi *v1.VirtualMachineInstance, migration *v1.VirtualMachineInstanceMigration)
func RunMigrationAndExpectFailure ¶
func RunMigrationAndExpectFailure(migration *v1.VirtualMachineInstanceMigration, timeout int) string
func RunMigrationAndExpectToComplete ¶
func RunMigrationAndExpectToComplete(virtClient kubecli.KubevirtClient, migration *v1.VirtualMachineInstanceMigration, timeout int) *v1.VirtualMachineInstanceMigration
func RunMigrationAndExpectToCompleteWithDefaultTimeout ¶
func RunMigrationAndExpectToCompleteWithDefaultTimeout(virtClient kubecli.KubevirtClient, migration *v1.VirtualMachineInstanceMigration) *v1.VirtualMachineInstanceMigration
func WaitUntilMigrationMode ¶
func WaitUntilMigrationMode(virtClient kubecli.KubevirtClient, vmi *v1.VirtualMachineInstance, expectedMode v1.MigrationMode, timeout int) *v1.VirtualMachineInstance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.