healthz

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HealthzTimeout time.Duration = 2
)

Functions

func PingWithTimeout

func PingWithTimeout(healthCheck func(c chan<- error), logger logr.Logger) error

func SimplePing

func SimplePing(controllerName string, log logr.Logger) healthz.Checker

Types

type HealthzHandler

type HealthzHandler struct {
	CheckersMap map[string]healthz.Checker
}

func NewHealthzHandler

func NewHealthzHandler(timeout int) *HealthzHandler

func (*HealthzHandler) AddControllerHealthChecker

func (hh *HealthzHandler) AddControllerHealthChecker(name string, controllerCheck healthz.Checker)

func (*HealthzHandler) AddControllersHealthCheckers

func (hh *HealthzHandler) AddControllersHealthCheckers(controllerCheckers map[string]healthz.Checker)

func (*HealthzHandler) AddControllersHealthStatusChecksToManager

func (hh *HealthzHandler) AddControllersHealthStatusChecksToManager(mgr manager.Manager) error

Jump to

Keyboard shortcuts

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