health

package
v1.6.1-0...-f207c0f Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthCheckerFromFunc

func NewHealthCheckerFromFunc(check func() error) healthz.Checker

NewHealthCheckerFromFunc creates a new healthz.Checker from a function.

Types

type CheckServer

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

CheckServer provides health checks for liveness probe (/healthz) and readiness probe (/readyz).

func NewHealthCheckServer

func NewHealthCheckServer(healthzCheck, readyzChecker healthz.Checker) *CheckServer

NewHealthCheckServer creates a new HealthCheckServer.

func (*CheckServer) ServeHTTP

func (s *CheckServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)

ServeHTTP serves for liveness probe (/healthz) and readiness probe (/readyz).

func (*CheckServer) Start

func (s *CheckServer) Start(ctx context.Context, addr string, logger logr.Logger)

Start starts the HTTP server serving healthz and readyz endpoints in a separate goroutine.

Jump to

Keyboard shortcuts

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