Skip to content

Commit

Permalink
Switch to typed values for WebhookInstallOptions.*Webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt committed Oct 14, 2021
1 parent 15edb3f commit db7dc92
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/rest"
"k8s.io/utils/pointer"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/envtest"
logf "sigs.k8s.io/controller-runtime/pkg/log"
logzap "sigs.k8s.io/controller-runtime/pkg/log/zap"
Expand Down Expand Up @@ -69,8 +68,8 @@ var _ = BeforeSuite(func() {
By("starting test environment")
testEnv = &envtest.Environment{
WebhookInstallOptions: envtest.WebhookInstallOptions{
ValidatingWebhooks: []client.Object{getValidatingWebhookConfig()},
MutatingWebhooks: []client.Object{getMutatingWebhookConfig()},
ValidatingWebhooks: []admissionregistrationv1.ValidatingWebhookConfiguration{*getValidatingWebhookConfig()},
MutatingWebhooks: []admissionregistrationv1.MutatingWebhookConfiguration{*getMutatingWebhookConfig()},
},
}
restConfig, err = testEnv.Start()
Expand Down

0 comments on commit db7dc92

Please sign in to comment.