nodedrain

package
v1.2.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, management *config.Management, options config.Options) error

Types

type ControllerHandler

type ControllerHandler struct {
	// contains filtered or unexported fields
}

ControllerHandler to drain nodes. the controller checks if node has any replicas which may be the only working replica for a VM and attempts to shutdown the VM before the drain is initiated. This ensures that no data is lost when the instance-managers are terminated as part of the drain process

func ActionHelper

func ActionHelper(nodeCache ctlcorev1.NodeCache, virtualMachineInstanceCache ctlkubevirtv1.VirtualMachineInstanceCache,
	longhornVolumeCache ctllhv1.VolumeCache, longhornReplicaCache ctllhv1.ReplicaCache) *ControllerHandler

func (*ControllerHandler) FindAndListNonMigratableVM added in v1.1.3

func (ndc *ControllerHandler) FindAndListNonMigratableVM(node *corev1.Node) ([]string, error)

FindAndListNonMigratableVM is called by action handler to leverage caches to find VM's which may have a cdrom or container disk attached to vmi

func (*ControllerHandler) FindAndListVM

func (ndc *ControllerHandler) FindAndListVM(node *corev1.Node) ([]string, error)

findAndListVM is called by action handler to leverage caches to find unhealthy VM's impacted by the migration

func (*ControllerHandler) FindAndListVMWithPCIDevices added in v1.2.0

func (ndc *ControllerHandler) FindAndListVMWithPCIDevices(node *corev1.Node) ([]string, error)

func (*ControllerHandler) OnNodeChange

func (ndc *ControllerHandler) OnNodeChange(key string, node *corev1.Node) (*corev1.Node, error)

OnNodeChange handles reconcile logic for node drains

Jump to

Keyboard shortcuts

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