Documentation ¶
Overview ¶
Package healthchecks run kstatus style health checks on a list of objects
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, watcher watcher.StatusWatcher, healthChecks []v1alpha1.NamespacedObjectKindReference) error
Run waits for a list of Zarf healthchecks to reach a ready state.
func WaitForReady ¶
func WaitForReady(ctx context.Context, sw watcher.StatusWatcher, objs []object.ObjMetadata) error
WaitForReady waits for all of the objects to reach a ready state.
func WaitForReadyRuntime ¶
func WaitForReadyRuntime(ctx context.Context, sw watcher.StatusWatcher, robjs []runtime.Object) error
WaitForReadyRuntime waits for all of the objects to reach a ready state.
Types ¶
type ImmediateWatcher ¶
type ImmediateWatcher struct {
// contains filtered or unexported fields
}
ImmediateWatcher should only be used for testing and returns the set status immediately.
func NewImmediateWatcher ¶
func NewImmediateWatcher(status status.Status) *ImmediateWatcher
NewImmediateWatcher returns a ImmediateWatcher.
Click to show internal directories.
Click to hide internal directories.