handler

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(log logr.Logger, startTime time.Time) http.Handler

HealthCheck returns an http.Handler that responds with JSON containing the git revision, uptime, and goroutine count. It encodes into a buffer first so that encoding errors can be reported with a proper 500 status.

func Healthz

func Healthz() http.Handler

Healthz returns an http.Handler that always responds with 200 OK and the body "ok". This is functionally equivalent to the controller-runtime healthz.Ping checker that was previously registered with each controller manager — those checkers were also unconditional (always healthy). The consolidated HTTP server now serves this endpoint in place of the per-controller health probe ports.

func Readyz

func Readyz() http.Handler

Readyz returns an http.Handler that always responds with 200 OK and the body "ok". This is functionally equivalent to the controller-runtime healthz.Ping checker that was previously registered with each controller manager — those checkers were also unconditional (always ready). The consolidated HTTP server now serves this endpoint in place of the per-controller health probe ports.

func RedirectToHTTPS

func RedirectToHTTPS(log logr.Logger, port int) http.Handler

RedirectToHTTPS returns an http.Handler that redirects incoming HTTP requests to the corresponding HTTPS URL on the specified port.

Types

This section is empty.

Jump to

Keyboard shortcuts

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