healthserver

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthzHandlerWithChecks added in v1.6.23

func NewHealthzHandlerWithChecks(cfg *Config) (http.Handler, error)

NewHealthzHandlerWithChecks will return a http.Handler for CNS's /healthz endpoint. Depending on what we expect CNS to be able to read (based on the [configuration.CNSConfig]) then the checks registered to the handler will test for those expectations. For example, in ChannelMode: CRD, the health check will ensure that CNS is able to list NNCs successfully.

func Start

func Start(log *zap.Logger, addr string, healthz, readyz http.Handler)

Types

type Config added in v1.6.25

type Config struct {
	PingAPIServer bool
	Mapper        meta.RESTMapper
}

Jump to

Keyboard shortcuts

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