admission

package
v0.0.0-...-dac2165 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultingWebhookFor

func DefaultingWebhookFor(defaulter Defaulter, apiType runtime.Object) *admission.Webhook

DefaultingWebhookFor creates a new Webhook for Defaulting the provided type.

func ValidatingWebhookFor

func ValidatingWebhookFor(validator Validator, apiType runtime.Object) *admission.Webhook

ValidatingWebhookFor creates a new Webhook for validating the provided type.

Types

type Defaulter

type Defaulter interface {
	Default(runtime.Object)
}

type Validator

type Validator interface {
	ValidateCreate(obj runtime.Object) error
	ValidateUpdate(obj runtime.Object, old runtime.Object) error
	ValidateDelete(obj runtime.Object) error
}

Jump to

Keyboard shortcuts

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