models

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthProbe

type HealthProbe struct {
	Path    string
	Port    int32
	Timeout time.Duration

	// isHTTP corresponds to an httpGet probe with a scheme of HTTP or undefined.
	// This helps inform what kind of Envoy config to add to the pod.
	IsHTTP bool

	// isTCPSocket indicates if the probe defines a TCPSocketAction.
	IsTCPSocket bool
}

HealthProbe represents a health probe.

type HealthProbes

type HealthProbes struct {
	Liveness, Readiness, Startup *HealthProbe
}

HealthProbes is to serve as an indication of whether the given healthProbe has been rewritten

func (*HealthProbes) UsesTCP

func (probes *HealthProbes) UsesTCP() bool

UsesTCP returns true if any of the configured probes uses a TCP probe.

Jump to

Keyboard shortcuts

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