Skip to content

Commit e6b3f14

Browse files
committed
fix: use directl url from kubeconfig
1 parent 2364058 commit e6b3f14

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

listener/kcp/manager_factory.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package kcp
22

33
import (
44
"context"
5-
"errors"
5+
66
"github.com/openmfp/golang-commons/logger"
77
"k8s.io/client-go/rest"
88
ctrl "sigs.k8s.io/controller-runtime"
@@ -30,10 +30,5 @@ func (f *ManagerFactory) NewManager(ctx context.Context, restCfg *rest.Config, o
3030
return ctrl.NewManager(restCfg, opts)
3131
}
3232

33-
virtualWorkspaceCfg, err := virtualWorkspaceConfigFromCfg(ctx, f.log, f.appConfig, restCfg, clt)
34-
if err != nil {
35-
return nil, errors.Join(ErrGetVWConfig, err)
36-
}
37-
38-
return kcpctrl.NewClusterAwareManager(virtualWorkspaceCfg, opts)
33+
return kcpctrl.NewClusterAwareManager(restCfg, opts)
3934
}

0 commit comments

Comments
 (0)