Help us shape the future of Go! Take the 2026 Go Developer Survey

resources

package
v1.81.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more 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) SetInternalCoreClientset

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

SetInternalCoreClientset 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