Skip to content

Commit

Permalink
fix: remove webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
dbbDylan committed Oct 29, 2024
1 parent 0a1cf01 commit 8120584
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/manager/controller_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import (
"context"
"fmt"

capkkv1beta1 "github.com/kubesphere/kubekey/v4/pkg/apis/capkk/v1beta1"

"k8s.io/client-go/rest"
"k8s.io/klog/v2"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down Expand Up @@ -91,17 +89,5 @@ func (c controllerManager) Run(ctx context.Context) error {
return err
}

if err = (&capkkv1beta1.KKCluster{}).SetupWebhookWithManager(mgr); err != nil {
klog.ErrorS(err, "unable to create webhook", "webhook", "KKCluster")

return err
}

if err = (&capkkv1beta1.KKMachine{}).SetupWebhookWithManager(mgr); err != nil {
klog.ErrorS(err, "unable to create webhook", "webhook", "KKMachine")

return err
}

return mgr.Start(ctx)
}

0 comments on commit 8120584

Please sign in to comment.