diff --git a/internal/test/envtest/environment.go b/internal/test/envtest/environment.go index a4ab7382614e..f6ff4af4bce4 100644 --- a/internal/test/envtest/environment.go +++ b/internal/test/envtest/environment.go @@ -291,9 +291,6 @@ func newEnvironment(uncachedObjs ...client.Object) *Environment { if err := (&webhooks.MachineHealthCheck{}).SetupWebhookWithManager(mgr); err != nil { klog.Fatalf("unable to create webhook: %+v", err) } - if err := (&webhooks.Machine{}).SetupWebhookWithManager(mgr); err != nil { - klog.Fatalf("unable to create webhook: %+v", err) - } if err := (&webhooks.MachineSet{}).SetupWebhookWithManager(mgr); err != nil { klog.Fatalf("unable to create webhook: %+v", err) }