readiness

package
v0.29.3 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 12

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 DecodeProbe

func DecodeProbe(jsonProbe string) (*corev1.Probe, error)

DecodeProbe takes a json serialised *corev1.Probe and returns a Probe or an error.

func EncodeProbe

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

EncodeProbe takes *corev1.Probe object and returns marshalled Probe JSON string and an error.

Types

type Probe

type Probe struct {
	*corev1.Probe
	// contains filtered or unexported fields
}

Probe wraps a corev1.Probe along with a count of consecutive, successful probes

func NewProbe

func NewProbe(v1p *corev1.Probe) *Probe

NewProbe returns a pointer to a new Probe.

func NewProbeWithHTTP2AutoDetection added in v0.22.0

func NewProbeWithHTTP2AutoDetection(v1p *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