evacuation

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// FailedCreateVirtualMachineInstanceMigrationReason is added in an event if creating a VirtualMachineInstanceMigration failed.
	FailedCreateVirtualMachineInstanceMigrationReason = "FailedCreate"
	// SuccessfulCreateVirtualMachineInstanceMigrationReason is added in an event if creating a VirtualMachineInstanceMigration succeeded.
	SuccessfulCreateVirtualMachineInstanceMigrationReason = "SuccessfulCreate"
)

Variables

This section is empty.

Functions

func GenerateNewMigration added in v0.37.0

func GenerateNewMigration(vmiName string, key string) *virtv1.VirtualMachineInstanceMigration

Types

type EvacuationController

type EvacuationController struct {
	Queue workqueue.RateLimitingInterface
	// contains filtered or unexported fields
}

func NewEvacuationController

func NewEvacuationController(
	vmiInformer cache.SharedIndexInformer,
	migrationInformer cache.SharedIndexInformer,
	nodeInformer cache.SharedIndexInformer,
	vmiPodInformer cache.SharedIndexInformer,
	recorder record.EventRecorder,
	clientset kubecli.KubevirtClient,
	clusterConfig *virtconfig.ClusterConfig,
) (*EvacuationController, error)

func (*EvacuationController) Execute

func (c *EvacuationController) Execute() bool

func (*EvacuationController) Run

func (c *EvacuationController) Run(threadiness int, stopCh <-chan struct{})

Run runs the passed in NodeController.

Jump to

Keyboard shortcuts

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