resourcereferencemanager

package
v0.0.0-...-b43e092 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type ReferenceManager

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

ReferenceManager contains listers and and admission handler.

func New

func New() (*ReferenceManager, error)

New creates a new ReferenceManager admission plugin.

func (*ReferenceManager) Admit

Admit ensures that referenced resources do actually exist.

func (*ReferenceManager) SetAuthorizer

func (r *ReferenceManager) SetAuthorizer(authorizer authorizer.Authorizer)

SetAuthorizer gets the authorizer.

func (*ReferenceManager) SetInternalGardenInformerFactory

func (r *ReferenceManager) SetInternalGardenInformerFactory(f gardeninformers.SharedInformerFactory)

SetInternalGardenInformerFactory gets Lister from SharedInformerFactory.

func (*ReferenceManager) SetKubeInformerFactory

func (r *ReferenceManager) SetKubeInformerFactory(f kubeinformers.SharedInformerFactory)

SetKubeInformerFactory gets Lister from SharedInformerFactory.

func (*ReferenceManager) ValidateInitialization

func (r *ReferenceManager) 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