Documentation ¶
Index ¶
- func AlignPolicyAndVmi(vmi *v1.VirtualMachineInstance, policy *migrationsv1.MigrationPolicy)
- func CreateMigrationPolicy(virtClient kubecli.KubevirtClient, policy *migrationsv1.MigrationPolicy) *migrationsv1.MigrationPolicy
- func FSIGMigrationDescribe(text string, args ...interface{}) bool
- func GeneratePolicyAndAlignVMI(vmi *v1.VirtualMachineInstance) *migrationsv1.MigrationPolicy
- func PSIGMigrationDescribe(text string, args ...interface{}) bool
- func PreparePolicyAndVMIWithBandwidthLimitation(vmi *v1.VirtualMachineInstance, bandwidth resource.Quantity) *migrationsv1.MigrationPolicy
- func PreparePolicyAndVMIWithNSAndVMILabels(vmi *v1.VirtualMachineInstance, namespace *k8sv1.Namespace, ...) *migrationsv1.MigrationPolicy
- func PreparePolicyAndVMIWithNSAndVMILabelsWithPreexistingPolicy(vmi *v1.VirtualMachineInstance, namespace *k8sv1.Namespace, ...) *migrationsv1.MigrationPolicy
- func SIGMigrationDescribe(text string, args ...interface{}) bool
- func VMIMigrationWithGuestAgent(virtClient kubecli.KubevirtClient, pvName string, memoryRequestSize string, ...)
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 CreateMigrationPolicy ¶
func CreateMigrationPolicy(virtClient kubecli.KubevirtClient, policy *migrationsv1.MigrationPolicy) *migrationsv1.MigrationPolicy
func FSIGMigrationDescribe ¶
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 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 VMIMigrationWithGuestAgent ¶ added in v1.3.0
func VMIMigrationWithGuestAgent(virtClient kubecli.KubevirtClient, pvName string, memoryRequestSize string, migrationPolicy *migrationsv1.MigrationPolicy)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.