kube

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ResourceReadyTimeout = 50 * time.Minute

ResourceReadyTimeout time to wait for resource to be ready

View Source
const ServerSetReadyTimeout = 3 * time.Hour

ServerSetReadyTimeout time to wait for serverset to be ready

Variables

View Source
var ErrExternalCreateFailed = errors.New("external create failed")

ErrExternalCreateFailed error when external create fails, so we know to delete kube object

Functions

func IsSuccessfullyCreated

func IsSuccessfullyCreated(obj resource.Managed) bool

IsSuccessfullyCreated checks if the object was successfully created

func WaitForResource

func WaitForResource(ctx context.Context, timeoutInMinutes time.Duration, fn IsResourceReady, name, namespace string) error

WaitForResource - keeps retrying until resource meets condition, or until ctx is cancelled

Types

type IsResourceReady

type IsResourceReady func(ctx context.Context, name, namespace string) (bool, error)

IsResourceReady polls kube api to see if resource is available and observed(status populated)

Jump to

Keyboard shortcuts

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