Skip to content

Commit

Permalink
Disable webhooks in api server of envtest
Browse files Browse the repository at this point in the history
The operatorconfig controller tests were broken due to
the validating webhook.

Signed-off-by: Marcelo Guerrero <[email protected]>
  • Loading branch information
mlguerrero12 committed Jul 1, 2023
1 parent a6d499e commit 9262126
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ var _ = BeforeSuite(func(done Done) {
ErrorIfCRDPathMissing: true,
}

testEnv.ControlPlane.GetAPIServer().Configure().Set("disable-admission-plugins", "MutatingAdmissionWebhook", "ValidatingAdmissionWebhook")

cfg, err := testEnv.Start()
Expect(err).NotTo(HaveOccurred())
Expect(cfg).NotTo(BeNil())
Expand Down

0 comments on commit 9262126

Please sign in to comment.