wait

package
v0.73.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package wait provides functions for waiting on Kubernetes resources and network endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForNetwork

func ForNetwork(ctx context.Context, protocol, address, condition string, timeout time.Duration) error

ForNetwork waits for a network endpoint to respond.

func ForResource

func ForResource(ctx context.Context, kind, identifier, condition, namespace string, timeout time.Duration) error

ForResource waits for a Kubernetes resource to meet the specified condition. It uses the same logic as `kubectl wait`, with retry logic for resources that don't exist yet. If identifier is empty, it will wait for any resource of the given kind to exist. This function retries on cluster connection errors, allowing it to wait for a cluster to become available.

func ForResourceDefaultReady added in v0.73.0

func ForResourceDefaultReady(ctx context.Context, kind, identifier, condition, namespace string, timeout time.Duration) error

ForResourceDefaultReady waits for any resource If identifier is empty, it will wait for the given kind If condition is empty, it will wait for the given identifier to be fully reconciled using healthchecks. This functions requires that a cluster is available before it is called

Types

This section is empty.

Jump to

Keyboard shortcuts

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