Documentation ¶
Index ¶
- Constants
- func GenerateMigratedVolumes(pvcStore cache.Store, vmi *virtv1.VirtualMachineInstance, ...) ([]virtv1.StorageMigratedVolumeInfo, error)
- func IsVolumeMigrating(vmi *virtv1.VirtualMachineInstance) bool
- func PatchVMIStatusWithMigratedVolumes(clientset kubecli.KubevirtClient, migVolsInfo []v1.StorageMigratedVolumeInfo, ...) error
- func PatchVMIVolumes(clientset kubecli.KubevirtClient, vmi *virtv1.VirtualMachineInstance, ...) (*virtv1.VirtualMachineInstance, error)
- func ValidateVolumes(vmi *virtv1.VirtualMachineInstance, vm *virtv1.VirtualMachine) error
- func ValidateVolumesUpdateMigration(vmi *virtv1.VirtualMachineInstance, vm *virtv1.VirtualMachine, ...) error
- func VolumeMigrationCancel(clientset kubecli.KubevirtClient, vmi *virtv1.VirtualMachineInstance, ...) (bool, error)
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 GenerateMigratedVolumes ¶ added in v1.4.0
func GenerateMigratedVolumes(pvcStore cache.Store, vmi *virtv1.VirtualMachineInstance, vm *virtv1.VirtualMachine) ([]virtv1.StorageMigratedVolumeInfo, error)
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 ¶
func PatchVMIVolumes(clientset kubecli.KubevirtClient, vmi *virtv1.VirtualMachineInstance, vm *virtv1.VirtualMachine) (*virtv1.VirtualMachineInstance, error)
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 ¶ added in v1.4.0
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.
Click to show internal directories.
Click to hide internal directories.