Skip to content

Commit 3e4c196

Browse files
authored
Merge pull request kubernetes-sigs#10506 from sbueringer/pr-reg-m-once
🌱 envtest: Setup Machine webhook only once
2 parents 28cc1c4 + 5191be1 commit 3e4c196

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/test/envtest/environment.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,6 @@ func newEnvironment(uncachedObjs ...client.Object) *Environment {
291291
if err := (&webhooks.MachineHealthCheck{}).SetupWebhookWithManager(mgr); err != nil {
292292
klog.Fatalf("unable to create webhook: %+v", err)
293293
}
294-
if err := (&webhooks.Machine{}).SetupWebhookWithManager(mgr); err != nil {
295-
klog.Fatalf("unable to create webhook: %+v", err)
296-
}
297294
if err := (&webhooks.MachineSet{}).SetupWebhookWithManager(mgr); err != nil {
298295
klog.Fatalf("unable to create webhook: %+v", err)
299296
}

0 commit comments

Comments
 (0)