Skip to content

Commit 56d95cf

Browse files
committed
Fix admission
1 parent 25b0d45 commit 56d95cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/admission/plugin/pizzatoppings/admission.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ type PizzaToppingsPlugin struct {
4242
}
4343

4444
var _ = custominitializer.WantsRestaurantInformerFactory(&PizzaToppingsPlugin{})
45+
var _ = admission.ValidationInterface(&PizzaToppingsPlugin{})
4546

4647
// Admit ensures that the object in-flight is of kind Pizza.
4748
// In addition checks that the toppings are known.
48-
func (d *PizzaToppingsPlugin) Validate(a admission.Attributes) error {
49+
func (d *PizzaToppingsPlugin) Validate(a admission.Attributes, _ admission.ObjectInterfaces) error {
4950
// we are only interested in pizzas
5051
if a.GetKind().GroupKind() != restaurant.Kind("Pizza") {
5152
return nil

0 commit comments

Comments
 (0)