Documentation ¶
Index ¶
- func LoadConfiguration(config io.Reader) (*shootresourcereservation.Configuration, error)
- func New(useGKEFormula bool) admission.MutationInterface
- func Register(plugins *admission.Plugins)
- type ResourceReservation
- func (c *ResourceReservation) Admit(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
- func (c *ResourceReservation) AssignReadyFunc(f admission.ReadyFunc)
- func (c *ResourceReservation) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
- func (c *ResourceReservation) ValidateInitialization() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfiguration ¶
func LoadConfiguration(config io.Reader) (*shootresourcereservation.Configuration, error)
LoadConfiguration loads the provided configuration.
func New ¶
func New(useGKEFormula bool) admission.MutationInterface
New creates a new ResourceReservation admission plugin.
Types ¶
type ResourceReservation ¶
ResourceReservation contains required information to process admission requests.
func (*ResourceReservation) Admit ¶
func (c *ResourceReservation) Admit(_ context.Context, a admission.Attributes, _ admission.ObjectInterfaces) error
Admit injects default resource reservations into worker pools of shoot objects
func (*ResourceReservation) AssignReadyFunc ¶
func (c *ResourceReservation) AssignReadyFunc(f admission.ReadyFunc)
AssignReadyFunc assigns the ready function to the admission handler.
func (*ResourceReservation) SetCoreInformerFactory ¶
func (c *ResourceReservation) SetCoreInformerFactory(f gardencoreinformers.SharedInformerFactory)
SetCoreInformerFactory gets Lister from SharedInformerFactory.
func (*ResourceReservation) ValidateInitialization ¶
func (c *ResourceReservation) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.