Documentation ¶
Index ¶
- Variables
- func Register(plugins *admission.Plugins)
- type ReferenceManager
- func (r *ReferenceManager) Admit(ctx context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (r *ReferenceManager) AssignReadyFunc(f admission.ReadyFunc)
- func (r *ReferenceManager) SetAuthorizer(authorizer authorizer.Authorizer)
- func (r *ReferenceManager) SetCoreClientSet(c versioned.Interface)
- func (r *ReferenceManager) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
- func (r *ReferenceManager) SetDynamicClient(c dynamic.Interface)
- func (r *ReferenceManager) SetKubeClientset(c kubernetes.Interface)
- func (r *ReferenceManager) SetKubeInformerFactory(f kubeinformers.SharedInformerFactory)
- func (r *ReferenceManager) SetSecurityClientSet(c versionedsecurity.Interface)
- func (r *ReferenceManager) SetSecurityInformerFactory(f gardensecurityinformers.SharedInformerFactory)
- func (r *ReferenceManager) SetSeedManagementInformerFactory(f seedmanagementinformers.SharedInformerFactory)
- func (r *ReferenceManager) ValidateInitialization() error
Constants ¶
This section is empty.
Variables ¶
var ( // MissingResourceWait is the time how long to wait for a missing resource before re-checking the cache // (and then doing a live lookup). MissingResourceWait = 50 * time.Millisecond )
Functions ¶
Types ¶
type ReferenceManager ¶
ReferenceManager contains listers 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, _ 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) SetCoreClientSet ¶ added in v1.90.0
func (r *ReferenceManager) SetCoreClientSet(c versioned.Interface)
SetCoreClientSet sets the Gardener client.
func (*ReferenceManager) SetCoreInformerFactory ¶ added in v1.90.0
func (r *ReferenceManager) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
SetCoreInformerFactory gets Lister from SharedInformerFactory.
func (*ReferenceManager) SetDynamicClient ¶ added in v1.6.0
func (r *ReferenceManager) SetDynamicClient(c dynamic.Interface)
SetDynamicClient sets the dynamic client.
func (*ReferenceManager) SetKubeClientset ¶
func (r *ReferenceManager) SetKubeClientset(c kubernetes.Interface)
SetKubeClientset sets the Kubernetes client.
func (*ReferenceManager) SetKubeInformerFactory ¶
func (r *ReferenceManager) SetKubeInformerFactory(f kubeinformers.SharedInformerFactory)
SetKubeInformerFactory gets Lister from SharedInformerFactory.
func (*ReferenceManager) SetSecurityClientSet ¶ added in v1.102.0
func (r *ReferenceManager) SetSecurityClientSet(c versionedsecurity.Interface)
SetSecurityClientSet sets the Gardener client.
func (*ReferenceManager) SetSecurityInformerFactory ¶ added in v1.98.0
func (r *ReferenceManager) SetSecurityInformerFactory(f gardensecurityinformers.SharedInformerFactory)
SetSecurityInformerFactory gets Lister from SharedInformerFactory.
func (*ReferenceManager) SetSeedManagementInformerFactory ¶ added in v1.97.0
func (r *ReferenceManager) SetSeedManagementInformerFactory(f seedmanagementinformers.SharedInformerFactory)
SetSeedManagementInformerFactory gets Lister from SharedInformerFactory.
func (*ReferenceManager) ValidateInitialization ¶
func (r *ReferenceManager) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.