admit

package
v1.8.0-alpha.2....-ef85265 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin

Types

type AlwaysAdmit

type AlwaysAdmit struct{}

AlwaysAdmit is an implementation of admission.Interface which always says yes to an admit request. It is useful in tests and when using kubernetes in an open manner.

func NewAlwaysAdmit

func NewAlwaysAdmit() *AlwaysAdmit

NewAlwaysAdmit creates a new always admit admission handler

func (AlwaysAdmit) Admit

func (AlwaysAdmit) Admit(a admission.Attributes) (err error)

Admit makes an admission decision based on the request attributes

func (AlwaysAdmit) Handles

func (AlwaysAdmit) Handles(operation admission.Operation) bool

Handles returns true if this admission controller can handle the given operation where operation can be one of CREATE, UPDATE, DELETE, or CONNECT

func (AlwaysAdmit) Validate

func (AlwaysAdmit) Validate(a admission.Attributes) (err error)

Validate makes an admission decision based on the request attributes. It is NOT allowed to mutate.

Jump to

Keyboard shortcuts

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