nodes

package
v0.0.0-...-71ccc44 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableMasterScheduling

func EnableMasterScheduling(client corev1Typed.NodeInterface, scheduleable bool) error

EnableMasterScheduling enables/disables master nodes scheduling.

func EnsureAllNodesAreLabeled

func EnsureAllNodesAreLabeled(label string) error

func GetNumOfReadyNodesInCluster

func GetNumOfReadyNodesInCluster(client corev1Typed.NodeInterface) (int32, error)

GetNumOfReadyNodesInCluster gets the number of ready nodes in the cluster.

func IsNodeInCondition

func IsNodeInCondition(node *corev1.Node, condition corev1.NodeConditionType) bool

IsNodeInCondition parses node conditions. Returns true if node is in given condition, otherwise false.

func IsNodeMaster

func IsNodeMaster(node *corev1.Node, client corev1Typed.NodeInterface) (bool, error)

func LabelNode

func LabelNode(client corev1Typed.CoreV1Interface, node *corev1.Node, label, value string) error

LabelNode labels a node by a given node name.

func UnCordon

func UnCordon(client corev1Typed.NodeInterface, nodeName string) error

UnCordon removes cordon label from the given node.

func WaitForNodesReady

func WaitForNodesReady(client corev1Typed.NodeInterface, timeout, interval time.Duration) error

WaitForNodesReady waits for all the nodes to become ready.

Types

This section is empty.

Jump to

Keyboard shortcuts

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