healthchecks

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

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.

func (*ImmediateWatcher) Watch

Watch watches the given objects and immediately returns the configured status.

Jump to

Keyboard shortcuts

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