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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.