File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
test/integration/envtest/seedadmissioncontroller Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ import (
35
35
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
36
36
"k8s.io/client-go/rest"
37
37
"k8s.io/utils/pointer"
38
- "sigs.k8s.io/controller-runtime/pkg/client"
39
38
"sigs.k8s.io/controller-runtime/pkg/envtest"
40
39
logf "sigs.k8s.io/controller-runtime/pkg/log"
41
40
logzap "sigs.k8s.io/controller-runtime/pkg/log/zap"
@@ -69,8 +68,8 @@ var _ = BeforeSuite(func() {
69
68
By ("starting test environment" )
70
69
testEnv = & envtest.Environment {
71
70
WebhookInstallOptions : envtest.WebhookInstallOptions {
72
- ValidatingWebhooks : []client. Object { getValidatingWebhookConfig ()},
73
- MutatingWebhooks : []client. Object { getMutatingWebhookConfig ()},
71
+ ValidatingWebhooks : []admissionregistrationv1. ValidatingWebhookConfiguration { * getValidatingWebhookConfig ()},
72
+ MutatingWebhooks : []admissionregistrationv1. MutatingWebhookConfiguration { * getMutatingWebhookConfig ()},
74
73
},
75
74
}
76
75
restConfig , err = testEnv .Start ()
You can’t perform that action at this time.
0 commit comments