Documentation ¶
Index ¶
- func GetAggregateErrors(err error) []error
- func IsAggregateError(err error) bool
- func NodePtr(n v1.Node) *v1.Node
- func WaitUntilNodeCreated(client kubernetes.Interface, nodeLabelKey, nodeLabelValue, nodePoolName string, ...) error
- func WaitUntilNodesCreated(client kubernetes.Interface, nodeLabelKey, nodeLabelValue string, ...) error
- func WaitUntilPodDeleted(client kubernetes.Interface, pod v1.Pod, interval, timeout time.Duration) error
- type AggregateError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAggregateErrors ¶
Retrieve the errors from an aggregate error and return
func IsAggregateError ¶
Whether or not the error is an aggregate error
func NodePtr ¶
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