Documentation
¶
Index ¶
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "ShootQuotaValidator"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RejectShootIfQuotaExceeded ¶
type RejectShootIfQuotaExceeded struct { *admission.Handler // contains filtered or unexported fields }
RejectShootIfQuotaExceeded contains listers and and admission handler.
func New ¶
func New() (*RejectShootIfQuotaExceeded, error)
New creates a new RejectShootIfQuotaExceeded admission plugin.
func (*RejectShootIfQuotaExceeded) Admit ¶
func (h *RejectShootIfQuotaExceeded) Admit(a admission.Attributes) error
Admit checks that the requested Shoot resources are within the quota limits.
func (*RejectShootIfQuotaExceeded) SetInternalGardenInformerFactory ¶
func (h *RejectShootIfQuotaExceeded) SetInternalGardenInformerFactory(f informers.SharedInformerFactory)
SetInternalGardenInformerFactory gets Lister from SharedInformerFactory.
func (*RejectShootIfQuotaExceeded) ValidateInitialization ¶
func (h *RejectShootIfQuotaExceeded) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.