nodes

package
v1.28.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package nodes contains the helper methods/functions for nodes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeKubernetesNodes added in v1.24.3

func DescribeKubernetesNodes(ctx context.Context, crudClient client.Client) (string, error)

DescribeKubernetesNodes prints the `describe node` for each node in the kubernetes cluster

func DrainPrimary added in v1.24.3

func DrainPrimary(
	ctx context.Context,
	crudClient client.Client,
	namespace,
	clusterName string,
	timeoutSeconds int,
) []string

DrainPrimary drains the node containing the primary pod. It returns the names of the pods that were running on that node

func IsNodeReachable added in v1.25.3

func IsNodeReachable(
	ctx context.Context,
	crudClient client.Client,
	nodeName string,
) (bool, error)

IsNodeReachable checks if a node is: 1. Ready 2. Not tainted with the unreachable taint

func List added in v1.24.3

func List(
	ctx context.Context,
	crudClient client.Client,
) (*corev1.NodeList, error)

List gathers the current list of Nodes

func UncordonAll added in v1.24.3

func UncordonAll(
	ctx context.Context,
	crudClient client.Client,
) error

UncordonAll executes the 'kubectl uncordon' command on each node of the list

Types

This section is empty.

Jump to

Keyboard shortcuts

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