webhook

package
v0.6.0-beta.30 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// HandlerMap contains all admission webhook handlers.
	HandlerMap = map[string]admission.Handler{}
)

Functions

func SetupWithManager

func SetupWithManager(mgr manager.Manager) error

Types

type PodCreateHandler

type PodCreateHandler struct {
	Client  client.Client
	Decoder *admission.Decoder
}

PodCreateHandler handles Pod

func (*PodCreateHandler) Handle

Handle handles admission requests.

func (*PodCreateHandler) InjectClient

func (h *PodCreateHandler) InjectClient(c client.Client) error

InjectClient injects the client into the PodCreateHandler

func (*PodCreateHandler) InjectDecoder

func (h *PodCreateHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the PodCreateHandler

Jump to

Keyboard shortcuts

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