Back to godoc.org

Package resources

v1.7.1
Latest Go to latest
Published: Jul 9, 2020 | Licenses: Apache-2.0 , BSD-2-Clause , MIT , MPL-2.0 | Module: github.com/gardener/gardener

Index

Package Files

Constants

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

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 {
	*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(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) 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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier