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" )
Click to show internal directories.
Click to hide internal directories.