Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PizzaSizePlugin ¶
func New ¶
func New() (*PizzaSizePlugin, error)
New creates a new ban pizza topping admission plugin
func (*PizzaSizePlugin) SetRestaurantInformerFactory ¶
func (d *PizzaSizePlugin) SetRestaurantInformerFactory(f informers.SharedInformerFactory)
SetRestaurantInformerFactory gets Lister from SharedInformerFactory. The lister knows how to lists Toppings.
func (*PizzaSizePlugin) Validate ¶
func (d *PizzaSizePlugin) Validate(a admission.Attributes, _ admission.ObjectInterfaces) error
Admit ensures that the object in-flight is of kind Pizza. In addition checks that the toppings are known.
func (*PizzaSizePlugin) ValidateInitialization ¶
func (d *PizzaSizePlugin) ValidateInitialization() error
ValidaValidateInitializationte checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.