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.
Click to show internal directories.
Click to hide internal directories.