nodes

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MinTimeout = 2 * time.Minute

Variables

View Source
var NodesSelector string

NodesSelector represent the label selector used to filter impacted nodes.

Functions

func ExecAndLogCommand

func ExecAndLogCommand(logCommand bool, timeout time.Duration, name string, arg ...string) ([]byte, error)

func IsNodeReachable

func IsNodeReachable(node *corev1.Node) bool

func IsSingleNodeCluster

func IsSingleNodeCluster() (bool, error)

func LabelNode

func LabelNode(nodeName, key, value string) (*corev1.Node, error)

func WaitForNodeReachability

func WaitForNodeReachability(node *corev1.Node, timeout time.Duration, expectedReachabilityStatus bool)

expectedReachabilityStatus true means test if the node is reachable, false means test if the node is unreachable

Types

type NodeTopology

type NodeTopology struct {
	NodeName      string
	InterfaceList []string
	NodeObject    *corev1.Node
}

Jump to

Keyboard shortcuts

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