resourcereservation

package
v1.105.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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.

func Register

func Register(plugins *admission.Plugins)

Register registers a plugin.

Types

type ResourceReservation

type ResourceReservation struct {
	*admission.Handler
	// contains filtered or unexported fields
}

ResourceReservation contains required information to process admission requests.

func (*ResourceReservation) Admit

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.

Directories

Path Synopsis
apis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL