resources

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(_ 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) SetCoreClientSet added in v1.90.0

func (r *Resources) SetCoreClientSet(c gardencoreclientset.Interface)

SetCoreClientSet gets the clientset from the Kubernetes client.

func (*Resources) Validate

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