Version: v1.63.1 Latest Latest

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 10 Imported by: 2




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


This section is empty.


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.


type Resources

type Resources struct {
	// 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.

Source Files

Jump to

Keyboard shortcuts

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