webhook

package
v0.0.0-...-f8bb171 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWebhook

func NewWebhook(name string, mgr manager.Manager, validator Validator, apiType runtime.Object) *admission.Webhook

NewWebhook creates a validating admission webhook for the apiType.

Types

type Validator

type Validator struct {
	Config conf.Configuration
	// contains filtered or unexported fields
}

Validator validates k8s resources.

func (*Validator) Handle

func (v *Validator) Handle(ctx context.Context, req types.Request) types.Response

Handle for Validator to run validation checks.

func (*Validator) InjectClient

func (v *Validator) InjectClient(c client.Client) error

InjectClient injects the client.

func (*Validator) InjectDecoder

func (v *Validator) InjectDecoder(d types.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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