Documentation ¶
Overview ¶
Package healthz contains helpers from supporting liveness and readiness endpoints. (often referred to as healthz and readyz, respectively).
This package draws heavily from the apiserver's healthz package ( https://github.com/kubernetes/apiserver/tree/master/pkg/server/healthz ) but has some changes to bring it in line with controller-runtime's style.
The main entrypoint is the Handler -- this serves both aggregated health status and individual health check endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckHandler ¶
type CheckHandler struct {
Checker
}
CheckHandler is an http.Handler that serves a health check endpoint at the root path, based on its checker.
func (CheckHandler) ServeHTTP ¶
func (h CheckHandler) ServeHTTP(resp http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.