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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.