Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdmissionController

func NewAdmissionController(
	ctx context.Context,
	name, path string,
	handlers map[schema.GroupVersionKind]resourcesemantics.GenericCRD,
	wc func(context.Context) context.Context,
	disallowUnknownFields bool,
	callbacks ...map[schema.GroupVersionKind]Callback,
) *controller.Impl

NewAdmissionController constructs a reconciler

Types

type Callback

type Callback struct {

	// contains filtered or unexported fields

}

Callback is a generic function to be called by a consumer of validation

func NewCallback

func NewCallback(function func(context.Context, *unstructured.Unstructured) error, supportedVerbs ...webhook.Operation) Callback

NewCallback creates a new callback function to be invoked on supported vebs.