resources

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName is the name of this admission plugin.
	PluginName = "ControllerRegistrationResources"
)

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(config io.Reader) (admission.Interface, error)

NewFactory creates a new PluginFactory.

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type Resources

type Resources struct {
	*admission.Handler
	// contains filtered or unexported fields
}

Resources contains an admission handler and listers.

func New

func New() (*Resources, error)

New creates a new Resources admission plugin.

func (*Resources) AssignReadyFunc

func (r *Resources) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*Resources) SetInternalCoreClientset

func (r *Resources) SetInternalCoreClientset(c coreclientset.Interface)

SetInternalCoreClientset gets the clientset from the Kubernetes client.

func (*Resources) Validate

func (r *Resources) Validate(a admission.Attributes) error

Validate makes admissions decisions based on the resources specified in a ControllerRegistration object. It does reject the request if there is any other existing ControllerRegistration object in the system that specifies the same resource kind/type combination like the incoming object.

func (*Resources) ValidateInitialization

func (r *Resources) ValidateInitialization() error

ValidateInitialization checks whether the plugin was correctly initialized.

Jump to

Keyboard shortcuts

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