handlers

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistryBackedValidator added in v0.13.0

func NewRegistryBackedValidator(log logr.Logger, scheme *runtime.Scheme, registry *validation.Registry) *registryBackedValidator

Types

type ConversionHook added in v0.12.0

type ConversionHook interface {
	// ConvertV1 is called to convert a resource in one version into a different version.
	ConvertV1(conversionSpec *apiextensionsv1.ConversionRequest) *apiextensionsv1.ConversionResponse
	// ConvertV1beta1 is called to convert a resource in one version into a different version.
	ConvertV1Beta1(conversionSpec *apiextensionsv1beta1.ConversionRequest) *apiextensionsv1beta1.ConversionResponse
}

type MutatingAdmissionHook added in v0.12.0

type MutatingAdmissionHook interface {
	// Admit is called to decide whether to accept the admission request. The returned AdmissionResponse may
	// use the Patch field to mutate the object from the passed AdmissionRequest.
	Mutate(admissionSpec *admissionv1.AdmissionRequest) *admissionv1.AdmissionResponse
}

type SchemeBackedConverter added in v0.12.0

type SchemeBackedConverter struct {
	// contains filtered or unexported fields
}

func NewSchemeBackedConverter added in v0.12.0

func NewSchemeBackedConverter(log logr.Logger, scheme *runtime.Scheme) *SchemeBackedConverter

func (*SchemeBackedConverter) ConvertV1 added in v1.0.1

func (*SchemeBackedConverter) ConvertV1Beta1 added in v1.0.1

type SchemeBackedDefaulter

type SchemeBackedDefaulter struct {
	// contains filtered or unexported fields
}

func NewSchemeBackedDefaulter

func NewSchemeBackedDefaulter(log logr.Logger, scheme *runtime.Scheme) *SchemeBackedDefaulter

func (*SchemeBackedDefaulter) Mutate added in v0.12.0

type ValidatingAdmissionHook added in v0.12.0

type ValidatingAdmissionHook interface {
	// Validate is called to decide whether to accept the admission request. The returned AdmissionResponse
	// must not use the Patch field.
	Validate(admissionSpec *admissionv1.AdmissionRequest) *admissionv1.AdmissionResponse
}

Jump to

Keyboard shortcuts

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