evacuation

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvacuateSatellite

func EvacuateSatellite(ctx context.Context, cl client.Client, lclient *lapi.Client, node *lapi.Node, machineClient *clusterapi.Client, machine *clusterapi.Machine) (string, bool, error)

EvacuateSatellite by ensuring all LINSTOR Resource have been moved to other nodes.

Returns a message indicating the current progress and a bool indicating if evacuation is complete. The function should be called repeatedly until completion of the evacuation.

Types

type PVEvacuationAction

type PVEvacuationAction string
const (
	// PVEvacuationActionNone indicates the PV is ready for evacuation as-is.
	PVEvacuationActionNone PVEvacuationAction = "None"
	// PVEvacuationActionDelete indicates the PV and PVC should be deleted so that it gets recreated on draining the node.
	PVEvacuationActionDelete PVEvacuationAction = "Delete"
	// PVEvacuationActionAffinityOverride indicates the PV should be prepared for evacuation by setting a less strict affinity.
	PVEvacuationActionAffinityOverride PVEvacuationAction = "AffinityOverride"
)

Jump to

Keyboard shortcuts

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