Skip to content

Commit

Permalink
Disable validating webhooks for controller tests
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Pavlov <[email protected]>
  • Loading branch information
Kshatrix committed Nov 29, 2024
1 parent 83bc469 commit d49e006
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/controller/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var _ = BeforeSuite(func() {

ctx, cancel = context.WithCancel(context.TODO())

validatingWebhooks, mutatingWebhooks, err := loadWebhooks(
_, mutatingWebhooks, err := loadWebhooks(
filepath.Join("..", "..", "templates", "provider", "hmc", "templates", "webhooks.yaml"),
)
Expect(err).NotTo(HaveOccurred())
Expand All @@ -101,8 +101,7 @@ var _ = BeforeSuite(func() {
BinaryAssetsDirectory: filepath.Join("..", "..", "bin", "k8s",
fmt.Sprintf("1.29.0-%s-%s", runtime.GOOS, runtime.GOARCH)),
WebhookInstallOptions: envtest.WebhookInstallOptions{
MutatingWebhooks: mutatingWebhooks,
ValidatingWebhooks: validatingWebhooks,
MutatingWebhooks: mutatingWebhooks,
},
}

Expand Down

0 comments on commit d49e006

Please sign in to comment.