waitfor

package
v0.0.0-...-d5bad45 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resource

func Resource(obj watch.Interface, condFunc watchtools.ConditionFunc, timeout time.Duration) (*watch.Event, error)

Resource waits until a kubernetes resources to match a condition

func ResourceWithContext

func ResourceWithContext(ctx context.Context, obj watch.Interface, condFunc watchtools.ConditionFunc) (*watch.Event, error)

ResourceWithContext is Resource with custom context when the default context is not suitable

Types

type Condition

type Condition struct {
}

Condition contains useful functions for watch conditions

func (Condition) Added

func (Condition) Added(event watch.Event) (bool, error)

Added waits until resources exists

func (Condition) LoadTestFinished

func (Condition) LoadTestFinished(event watch.Event) (bool, error)

LoadTestFinished waits until Loadtest are with status phase finished

func (Condition) LoadTestRunning

func (Condition) LoadTestRunning(event watch.Event) (bool, error)

LoadTestRunning waits until Loadtest are with status phase running

func (Condition) PodRunning

func (Condition) PodRunning(event watch.Event) (bool, error)

PodRunning waits until Pod are with status phase running

func (Condition) PvcReady

func (Condition) PvcReady(event watch.Event) (bool, error)

PvcReady waits until is bound

Jump to

Keyboard shortcuts

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