Back to / plugin / pkg / global / resourcereferencemanager

Package resourcereferencemanager

Latest Go to latest
Published: Jul 9, 2020 | Licenses: Apache-2.0 , BSD-2-Clause , MIT , MPL-2.0 | Module:


Package Files


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


var (

	// MissingSecretWait is the time how long to wait for a missing secret before re-checking the cache
	// (and then doing a live lookup).
	MissingSecretWait = 50 * time.Millisecond

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

type ReferenceManager

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

func (r *ReferenceManager) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error

Admit ensures that referenced resources do actually exist.

func (*ReferenceManager) AssignReadyFunc

func (r *ReferenceManager) AssignReadyFunc(f admission.ReadyFunc)

AssignReadyFunc assigns the ready function to the admission handler.

func (*ReferenceManager) SetAuthorizer

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

SetAuthorizer gets the authorizer.

func (*ReferenceManager) SetDynamicClient

func (r *ReferenceManager) SetDynamicClient(c dynamic.Interface)

SetDynamicClient sets the dynamic client.

func (*ReferenceManager) SetInternalCoreInformerFactory

func (r *ReferenceManager) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)

SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.

func (*ReferenceManager) SetKubeClientset

func (r *ReferenceManager) SetKubeClientset(c kubernetes.Interface)

SetKubeClientset gets the clientset from the Kubernetes client.

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.

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

Jump to identifier

Keyboard shortcuts

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