webhook

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const HandlePattern = "/pods/inject-sidecar"

Variables

This section is empty.

Functions

func RegisterSidecarInjectionHandler

func RegisterSidecarInjectionHandler()

Types

type AdmissionWebhookServer

type AdmissionWebhookServer struct {
	*http.Server
}

func NewSidecarInjectionWebhook

func NewSidecarInjectionWebhook(ctx context.Context) *AdmissionWebhookServer

type SidecarInjectionHandler

type SidecarInjectionHandler interface {
	// Generate a JSONPatch that injects the given pod with the proxy sidecar(s)
	GetSidecarPatch(ctx context.Context, candidatePod *corev1.Pod) (patchRequired bool, patch []byte, err error)
}

func GetInjectionHandler

func GetInjectionHandler() SidecarInjectionHandler

Directories

Path Synopsis
Package clients is a generated GoMock package.
Package clients is a generated GoMock package.

Jump to

Keyboard shortcuts

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