Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PizzaToppingsPlugin ¶
func New ¶
func New() (*PizzaToppingsPlugin, error)
New creates a new ban pizza topping admission plugin
func (*PizzaToppingsPlugin) SetRestaurantInformerFactory ¶
func (d *PizzaToppingsPlugin) SetRestaurantInformerFactory(f informers.SharedInformerFactory)
SetRestaurantInformerFactory gets Lister from SharedInformerFactory. The lister knows how to lists Toppings.
func (*PizzaToppingsPlugin) Validate ¶
func (d *PizzaToppingsPlugin) 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 (*PizzaToppingsPlugin) ValidateInitialization ¶
func (d *PizzaToppingsPlugin) ValidateInitialization() error
ValidaValidateInitializationte checks whether the plugin was correctly initialized.
Click to show internal directories.
Click to hide internal directories.