Documentation ¶
Index ¶
- Constants
- func LoadConfiguration(config io.Reader) (*shoottolerationrestriction.Configuration, error)
- func Register(plugins *admission.Plugins)
- type TolerationRestriction
- func (t *TolerationRestriction) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (t *TolerationRestriction) AssignReadyFunc(f admission.ReadyFunc)
- func (t *TolerationRestriction) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)
- func (t *TolerationRestriction) Validate(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (t *TolerationRestriction) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "ShootTolerationRestriction"
)
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(ctx context.Context, a admission.Attributes, o 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) SetInternalCoreInformerFactory ¶
func (t *TolerationRestriction) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)
SetInternalCoreInformerFactory sets the internal garden core informer factory.
func (*TolerationRestriction) Validate ¶
func (t *TolerationRestriction) Validate(ctx context.Context, a admission.Attributes, o 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.