volumemigration

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidUpdateErrMsg = "The volume can only be reverted to the previous version during the update"

Variables

This section is empty.

Functions

func IsVolumeMigrating

func IsVolumeMigrating(vmi *virtv1.VirtualMachineInstance) bool

IsVolumeMigrating checks the VMI condition for volume migration

func PatchVMIStatusWithMigratedVolumes

func PatchVMIStatusWithMigratedVolumes(clientset kubecli.KubevirtClient, migVolsInfo []v1.StorageMigratedVolumeInfo, vmi *virtv1.VirtualMachineInstance) error

PatchVMIStatusWithMigratedVolumes patches the VMI status with the source and destination volume information during the volume migration

func PatchVMIVolumes

PatchVMIVolumes replaces the VMI volumes with the migrated volumes

func ValidateVolumes

func ValidateVolumes(vmi *virtv1.VirtualMachineInstance, vm *virtv1.VirtualMachine) error

ValidateVolumes checks that the volumes can be updated with the migration

func ValidateVolumesUpdateMigration

func ValidateVolumesUpdateMigration(vmi *virtv1.VirtualMachineInstance, vm *virtv1.VirtualMachine, migVolsInfo []virtv1.StorageMigratedVolumeInfo) error

ValidateVolumesUpdateMigration checks if the VMI can be update with the volume migration. For example, for certain VMs, the migration is not allowed for other reasons then the storage

func VolumeMigrationCancel

func VolumeMigrationCancel(clientset kubecli.KubevirtClient, vmi *virtv1.VirtualMachineInstance, vm *virtv1.VirtualMachine) (bool, error)

VolumeMigrationCancel cancels the volume migraton

Types

This section is empty.

Jump to

Keyboard shortcuts

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