Documentation ¶
Index ¶
- func EnableMasterScheduling(client corev1Typed.NodeInterface, scheduleable bool) error
- func EnsureAllNodesAreLabeled(label string) error
- func GetNumOfReadyNodesInCluster(client corev1Typed.NodeInterface) (int32, error)
- func IsNodeInCondition(node *corev1.Node, condition corev1.NodeConditionType) bool
- func IsNodeMaster(node *corev1.Node, client corev1Typed.NodeInterface) (bool, error)
- func LabelNode(client corev1Typed.CoreV1Interface, node *corev1.Node, label, value string) error
- func UnCordon(client corev1Typed.NodeInterface, nodeName string) error
- func WaitForNodesReady(client corev1Typed.NodeInterface, timeout, interval time.Duration) error
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 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.
Click to show internal directories.
Click to hide internal directories.