Documentation ¶
Index ¶
- func LoadConfiguration(config io.Reader) (*shoottolerationrestriction.Configuration, error)
- func Register(plugins *admission.Plugins)
- type TolerationRestriction
- func (t *TolerationRestriction) Admit(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (t *TolerationRestriction) AssignReadyFunc(f admission.ReadyFunc)
- func (t *TolerationRestriction) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
- func (t *TolerationRestriction) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (t *TolerationRestriction) ValidateInitialization() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfiguration ¶
func LoadConfiguration(config io.Reader) (*shoottolerationrestriction.Configuration, error)
LoadConfiguration loads the provided configuration.
Types ¶
type TolerationRestriction ¶
TolerationRestriction contains listers and admission handler.
func New ¶
func New(config *shoottolerationrestriction.Configuration) (*TolerationRestriction, error)
New creates a new TolerationRestriction admission plugin.
func (*TolerationRestriction) Admit ¶
func (t *TolerationRestriction) Admit(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
Admit defaults shoot tolerations with both global and project defaults.
func (*TolerationRestriction) AssignReadyFunc ¶
func (t *TolerationRestriction) AssignReadyFunc(f admission.ReadyFunc)
AssignReadyFunc assigns the ready function to the admission handler.
func (*TolerationRestriction) SetCoreInformerFactory ¶ added in v1.90.0
func (t *TolerationRestriction) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
SetCoreInformerFactory sets the internal garden core informer factory.
func (*TolerationRestriction) Validate ¶
func (t *TolerationRestriction) Validate(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
Validate makes admissions decisions based on the allowed project tolerations or globally allowed tolerations.
func (*TolerationRestriction) ValidateInitialization ¶
func (t *TolerationRestriction) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.