@@ -71,10 +71,6 @@ func HNCBeforeSuite() {
71
71
By ("configuring test environment" )
72
72
testEnv = & envtest.Environment {
73
73
CRDDirectoryPaths : []string {filepath .Join (".." , ".." , "config" , "crd" , "bases" )},
74
- // todo(erikgb): Fix tests that breaks when enabling webhooks
75
- //WebhookInstallOptions: envtest.WebhookInstallOptions{
76
- // Paths: []string{filepath.Join("..", "..", "config", "webhook")},
77
- //},
78
74
}
79
75
80
76
By ("starting test environment" )
@@ -98,14 +94,10 @@ func HNCBeforeSuite() {
98
94
// CF: https://github.com/microsoft/azure-databricks-operator/blob/0f722a710fea06b86ecdccd9455336ca712bf775/controllers/suite_test.go
99
95
100
96
By ("creating manager" )
101
- webhookInstallOptions := & testEnv .WebhookInstallOptions
102
97
k8sManager , err := ctrl .NewManager (cfg , ctrl.Options {
103
98
NewClient : config .NewClient (false ),
104
99
MetricsBindAddress : "0" , // disable metrics serving since 'go test' runs multiple suites in parallel processes
105
100
Scheme : scheme .Scheme ,
106
- Host : webhookInstallOptions .LocalServingHost ,
107
- Port : webhookInstallOptions .LocalServingPort ,
108
- CertDir : webhookInstallOptions .LocalServingCertDir ,
109
101
})
110
102
Expect (err ).ToNot (HaveOccurred ())
111
103
@@ -119,7 +111,6 @@ func HNCBeforeSuite() {
119
111
TestForest = forest .NewForest ()
120
112
err = setup .CreateReconcilers (k8sManager , TestForest , opts )
121
113
Expect (err ).ToNot (HaveOccurred ())
122
- setup .CreateWebhooks (k8sManager , TestForest , opts )
123
114
124
115
By ("Creating clients" )
125
116
K8sClient , err = client .New (cfg , client.Options {Scheme : scheme .Scheme })
0 commit comments