webhooks

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttributeFromRequest

func NewAttributeFromRequest(req admission.Request, d *admission.Decoder, scheme *runtime.Scheme) (apiadmission.Attributes, error)

NewAttributeFromRequest converts the given request into api attributes

func Register

func Register(mgr manager.Manager) error

Register registers the webhooks to the manager

Types

type AccountQuotaValidator

type AccountQuotaValidator struct {
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

AccountQuotaValidator validates account quotas

func (*AccountQuotaValidator) Handle

Handle handles the validation

func (*AccountQuotaValidator) InjectDecoder

func (v *AccountQuotaValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type PodValidator

type PodValidator struct {
	Log    logr.Logger
	Scheme *runtime.Scheme

	AdmissionController apiadmission.ValidationInterface
	// contains filtered or unexported fields
}

PodValidator validates pods

func (*PodValidator) Handle

Handle handles the admission request

func (*PodValidator) InjectDecoder

func (v *PodValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type TemplateInstanceValidator

type TemplateInstanceValidator struct {
	Log    logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

TemplateInstanceValidator validates a template instance

func (*TemplateInstanceValidator) Handle

Handle handles the validation

func (*TemplateInstanceValidator) InjectDecoder

func (v *TemplateInstanceValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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