nodes

package
v1.26.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 List added in v1.24.3

func List(
	ctx context.Context,
	crudClient client.Client,
) (*v1.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