drainhelper

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DrainAnnotation = "harvesterhci.io/drain-requested"
	ForcedDrain     = "harvesterhci.io/drain-forced"
)

Variables

This section is empty.

Functions

func DrainNode

func DrainNode(ctx context.Context, cfg *rest.Config, node *corev1.Node) error

func DrainPossible

func DrainPossible(nodeCache ctlcorev1.NodeCache, node *corev1.Node) error

DrainPossible is a helper method to check node object and query remaining nodes in cluster to identify if it is possible to place the current mode in maintenance mode

Types

This section is empty.

Jump to

Keyboard shortcuts

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