Documentation ¶
Index ¶
- Constants
- func Register(plugins *admission.Plugins)
- type ValidateShoot
- func (v *ValidateShoot) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
- func (v *ValidateShoot) AssignReadyFunc(f admission.ReadyFunc)
- func (v *ValidateShoot) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)
- func (v *ValidateShoot) ValidateInitialization() error
Constants ¶
View Source
const (
// PluginName is the name of this admission plugin.
PluginName = "ShootValidator"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ValidateShoot ¶
ValidateShoot contains listers and and admission handler.
func (*ValidateShoot) Admit ¶
func (v *ValidateShoot) Admit(ctx context.Context, a admission.Attributes, o admission.ObjectInterfaces) error
Admit validates the Shoot details against the referenced CloudProfile.
func (*ValidateShoot) AssignReadyFunc ¶
func (v *ValidateShoot) AssignReadyFunc(f admission.ReadyFunc)
AssignReadyFunc assigns the ready function to the admission handler.
func (*ValidateShoot) SetInternalCoreInformerFactory ¶
func (v *ValidateShoot) SetInternalCoreInformerFactory(f coreinformers.SharedInformerFactory)
SetInternalCoreInformerFactory gets Lister from SharedInformerFactory.
func (*ValidateShoot) ValidateInitialization ¶
func (v *ValidateShoot) ValidateInitialization() error
ValidateInitialization checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.