helper

package
v2.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAggregateErrors

func GetAggregateErrors(err error) []error

Retrieve the errors from an aggregate error and return

func IsAggregateError

func IsAggregateError(err error) bool

Whether or not the error is an aggregate error

func NodePtr

func NodePtr(n v1.Node) *v1.Node

When looping through a list of node instances via range loop and storing a pointer, use this to copy and return a ptr to the copy

func WaitUntilNodeCreated

func WaitUntilNodeCreated(client kubernetes.Interface, nodeLabelKey, nodeLabelValue, nodePoolName string, interval, timeout time.Duration) error

WaitUntilNodeCreated is a cluster helper method that runs a poll against the kubernetes api to determine if a node has been created or not.

func WaitUntilNodesCreated

func WaitUntilNodesCreated(client kubernetes.Interface, nodeLabelKey, nodeLabelValue string, nodeCount int, interval, timeout time.Duration) error

WaitUntilNodesCreated is a cluster helper method that runs a poll against the kubernetes api to determine if a set of node has been created or not.

func WaitUntilPodDeleted

func WaitUntilPodDeleted(client kubernetes.Interface, pod v1.Pod, interval, timeout time.Duration) error

Waits until a specific pod is deleted/evicted.

Types

type AggregateError

type AggregateError interface {
	GetErrors() []error
}

Aggregate Error interface which defines a contract for an error containing multiple errors

Jump to

Keyboard shortcuts

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