nodes

package
v0.0.0-...-f10e7fe Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PollInterval = time.Duration(5 * time.Second)
	PollTimeout  = time.Duration(15 * time.Minute)
)

Variables

This section is empty.

Functions

func AllMachineReady

func AllMachineReady(client *rancher.Client, clusterID string, timeout time.Duration) error

AllMachineReady is a helper method that will loop and check if the machine object of every node in a cluster is ready. Typically Used for RKE2/K3s Clusters. It will return an error if the machine object is not ready after set amount of time.

func AllManagementNodeReady

func AllManagementNodeReady(client *rancher.Client, ClusterID string, timeout time.Duration) error

AllManagementNodeReady is a helper method that will loop and check if the node is ready in the RKE1 cluster. It will return an error if the node is not ready after set amount of time.

func AllNodeDeleted

func AllNodeDeleted(client *rancher.Client, ClusterID string) error

AllNodeDeleted is a helper method that will loop and check if all of the node is deleted in the cluster.

func IsNodeDeleted

func IsNodeDeleted(client *rancher.Client, nodeName, ClusterID string) error

IsNodeDeleted is a helper method that will loop and check if the node is deleted in the cluster.

func Isv1NodeConditionMet

func Isv1NodeConditionMet(client *rancher.Client, machineID, clusterID, conditionReason string) error

Isv1NodeConditionMet checks the condition reasons of a given machine in a cluster and waits for it to be true. Otherwise, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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