checks

package
v0.0.0-...-8540621 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck interface {
	// Wait for this healthchecks condition to be true.
	Wait(context.Context, *cluster.Context, *experimentpb.ClusterSpec) error
	// Name returns a printable name for the healthcheck.
	Name() string
}

HealthCheck is the interface for checking an arbitrary health condition on a workload.

func NewK8SHealthCheck

func NewK8SHealthCheck(spec *experimentpb.K8SPodsReadyCheck) HealthCheck

NewK8SHealthCheck returns a new HealthCheck that checks that all pods in the given namespace are ready.

func NewPxLHealthCheck

func NewPxLHealthCheck(pxCtx *pixie.Context, spec *experimentpb.PxLHealthCheck) HealthCheck

NewPxLHealthCheck returns a new HealthCheck based on a 'success' column of a PxL script being true.

Jump to

Keyboard shortcuts

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