topolvm-hook: fix test
@@ -33,7 +33,7 @@ func setupResources() {
_, err = ctrl.CreateOrUpdate(testCtx, k8sClient, wh, func() error {
failPolicy := admissionregistrationv1beta1.Fail
urlStr := "https://127.0.0.1:8443/mutate"
- wh.Webhooks = []admissionregistrationv1beta1.Webhook{
+ wh.Webhooks = []admissionregistrationv1beta1.MutatingWebhook{
{
Name: "hook.topolvm.cybozu.com",
FailurePolicy: &failPolicy,
