We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b0d45 commit 56d95cfCopy full SHA for 56d95cf
pkg/admission/plugin/pizzatoppings/admission.go
@@ -42,10 +42,11 @@ type PizzaToppingsPlugin struct {
42
}
43
44
var _ = custominitializer.WantsRestaurantInformerFactory(&PizzaToppingsPlugin{})
45
+var _ = admission.ValidationInterface(&PizzaToppingsPlugin{})
46
47
// Admit ensures that the object in-flight is of kind Pizza.
48
// In addition checks that the toppings are known.
-func (d *PizzaToppingsPlugin) Validate(a admission.Attributes) error {
49
+func (d *PizzaToppingsPlugin) Validate(a admission.Attributes, _ admission.ObjectInterfaces) error {
50
// we are only interested in pizzas
51
if a.GetKind().GroupKind() != restaurant.Kind("Pizza") {
52
return nil
0 commit comments