probe

package
v0.0.0-...-dcdb1c8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LivenessProbeClientIdentity is the default identity for the liveness probe check
	LivenessProbeClientIdentity = "k8s.cluster.local"
)

Variables

This section is empty.

Functions

func GrpcProtocolProvider

func GrpcProtocolProvider(caAddress string, dialOpts []grpc.DialOption) (protocol.CAProtocol, error)

GrpcProtocolProvider returns a CAProtocol instance talking to CA via gRPC.

Types

type CAProtocolProvider

type CAProtocolProvider func(caAddress string, dialOpts []grpc.DialOption) (protocol.CAProtocol, error)

CAProtocolProvider returns a CAProtocol instance for talking to CA.

type LivenessCheckController

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

LivenessCheckController updates the availability of the liveness probe of the CA instance

func NewLivenessCheckController

func NewLivenessCheckController(probeCheckInterval time.Duration, caAddr string,
	ca *ca.IstioCA, livenessProbeOptions *probe.Options,
	provider CAProtocolProvider) (*LivenessCheckController, error)

NewLivenessCheckController creates the liveness check controller instance

func (*LivenessCheckController) Run

func (c *LivenessCheckController) Run()

Run starts the check routine

Jump to

Keyboard shortcuts

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