Documentation
¶
Overview ¶
Package nodes contains the helper methods/functions for nodes
Index ¶
- func DescribeKubernetesNodes(ctx context.Context, crudClient client.Client) (string, error)
- func DrainPrimary(ctx context.Context, crudClient client.Client, namespace, clusterName string, ...) []string
- func IsNodeReachable(ctx context.Context, crudClient client.Client, nodeName string) (bool, error)
- func List(ctx context.Context, crudClient client.Client) (*v1.NodeList, error)
- func UncordonAll(ctx context.Context, crudClient client.Client) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DescribeKubernetesNodes ¶ added in v1.24.3
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.