validating

package
v2.0.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AllowedReason string = "allowed to be admitted"

Webhook response reasons

Variables

View Source
var (
	// Builders contain admission webhook builders
	Builders = map[string]*builder.WebhookBuilder{}
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string][]admission.Handler{}
)

Functions

This section is empty.

Types

type SystemCreateUpdateHandler

type SystemCreateUpdateHandler struct {
	// API client reference
	Client client.Client

	// Decoder decodes objects
	Decoder types.Decoder
}

SystemCreateUpdateHandler handles System

func (*SystemCreateUpdateHandler) Handle

Handle handles admission requests.

func (*SystemCreateUpdateHandler) InjectClient

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

InjectClient injects the client into the SystemCreateUpdateHandler

func (*SystemCreateUpdateHandler) InjectDecoder

func (h *SystemCreateUpdateHandler) InjectDecoder(d types.Decoder) error

InjectDecoder injects the decoder into the SystemCreateUpdateHandler

Jump to

Keyboard shortcuts

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