healthcheck

package
v0.0.0-...-8eb8255 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCutDownNamespaceClient

func NewCutDownNamespaceClient(k *kubernetes.Clientset) cutDownKubernetesClient

NewCutDownNamespaceClient converts a full blown kubernetes clientset into a cut down one that implements the kubernetesNamespaceAccessor interface

Types

type HealthChecker

type HealthChecker struct {
	Port int    `mapstructure:"port"`
	Path string `mapstructure:"path"`
	// contains filtered or unexported fields
}

HealthChecker is a http server that responds to http requests on http://0.0.0.0:port/path and returns 200 if it can read kubernetes api (list namespaces)

func NewHealthChecker

func NewHealthChecker(k kubernetesClient, port int, path string) HealthChecker

func (HealthChecker) ServeHTTP

func (h HealthChecker) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHttp handles a mutating webhook review request

func (HealthChecker) StartHealthChecker

func (h HealthChecker) StartHealthChecker()

StartHealthChecker starts the health-checker http server in a go-routine.

Jump to

Keyboard shortcuts

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