migration

package
v1.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 72 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignPolicyAndVmi

func AlignPolicyAndVmi(vmi *v1.VirtualMachineInstance, policy *migrationsv1.MigrationPolicy)

AlignPolicyAndVmi is expected to be called on objects before they're created.

func FSIGMigrationDescribe

func FSIGMigrationDescribe(text string, args ...interface{}) bool

func GeneratePolicyAndAlignVMI

func GeneratePolicyAndAlignVMI(vmi *v1.VirtualMachineInstance) *migrationsv1.MigrationPolicy

GeneratePolicyAndAlignVMI mutates the given vmi parameter by adding labels to it. Therefore, it's recommended to use this function before creating the vmi. Otherwise, its labels need to be updated.

func PSIGMigrationDescribe

func PSIGMigrationDescribe(text string, args ...interface{}) bool

func PreparePolicyAndVMIWithBandwidthLimitation

func PreparePolicyAndVMIWithBandwidthLimitation(vmi *v1.VirtualMachineInstance, bandwidth resource.Quantity) *migrationsv1.MigrationPolicy

func PreparePolicyAndVMIWithNSAndVMILabels

func PreparePolicyAndVMIWithNSAndVMILabels(vmi *v1.VirtualMachineInstance, namespace *k8sv1.Namespace, matchingVmiLabels, matchingNSLabels int) *migrationsv1.MigrationPolicy

func PreparePolicyAndVMIWithNSAndVMILabelsWithPreexistingPolicy

func PreparePolicyAndVMIWithNSAndVMILabelsWithPreexistingPolicy(vmi *v1.VirtualMachineInstance, namespace *k8sv1.Namespace, matchingVmiLabels, matchingNSLabels int, policy *migrationsv1.MigrationPolicy) *migrationsv1.MigrationPolicy

If matchingNSLabels is zero, namespace parameter is being ignored and can be nil

func SIGMigrationDescribe

func SIGMigrationDescribe(text string, args ...interface{}) bool

func VMIMigrationWithGuestAgent added in v1.3.0

func VMIMigrationWithGuestAgent(virtClient kubecli.KubevirtClient, pvName string, memoryRequestSize string, migrationPolicy *migrationsv1.MigrationPolicy)

Types

This section is empty.

Jump to

Keyboard shortcuts

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