readiness

package
v0.48.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: Apache-2.0 Imports: 12 Imported by: 8 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// PollTimeout is set equal to the queue-proxy's ExecProbe timeout to take
	// advantage of the full window
	PollTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

func DecodeProbes added in v0.41.0

func DecodeProbes(jsonProbe string, multiContainerProbes bool) ([]*corev1.Probe, error)

DecodeProbes takes a json serialised *corev1.Probe OR []*corev1.Probe (depending on multiContainerProbes) and returns a slice of probes or an error.

func EncodeMultipleProbes added in v0.41.0

func EncodeMultipleProbes(rps []*corev1.Probe) (string, error)

EncodeMultipleProbes takes []*corev1.Probe slice and returns marshalled slice of Probe JSON string and an error.

func EncodeSingleProbe added in v0.41.0

func EncodeSingleProbe(rp *corev1.Probe) (string, error)

EncodeSingleProbe takes a single *corev1.Probe object and returns marshalled Probe JSON string and an error.

Types

type Probe

type Probe struct {
	// contains filtered or unexported fields
}

Probe holds all wrapped *corev1.Probe along with a barrier to sync single probing execution

func NewProbe

func NewProbe(probes []*corev1.Probe) *Probe

NewProbe returns a pointer to a new Probe.

func NewProbeWithHTTP2AutoDetection added in v0.22.0

func NewProbeWithHTTP2AutoDetection(probes []*corev1.Probe) *Probe

NewProbeWithHTTP2AutoDetection returns a pointer to a new Probe that has HTTP2 auto-detection enabled.

func (*Probe) ProbeContainer

func (p *Probe) ProbeContainer() bool

ProbeContainer executes the defined Probe against the user-container

Jump to

Keyboard shortcuts

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