@@ -28,8 +28,6 @@ import (
2828
2929 schedulingv1alpha2 "github.com/NVIDIA/KAI-scheduler/pkg/apis/scheduling/v1alpha2"
3030
31- admissionplugins "github.com/NVIDIA/KAI-scheduler/pkg/admission/plugins"
32- "github.com/NVIDIA/KAI-scheduler/pkg/admission/webhook/v1alpha2/gpusharing"
3331 "github.com/NVIDIA/KAI-scheduler/pkg/binder/binding"
3432 "github.com/NVIDIA/KAI-scheduler/pkg/binder/binding/resourcereservation"
3533 "github.com/NVIDIA/KAI-scheduler/pkg/binder/controllers"
@@ -112,14 +110,11 @@ var _ = BeforeSuite(func() {
112110 informerFactory := informers .NewSharedInformerFactory (kubeClient , 0 )
113111
114112 binderPlugins := plugins .New ()
115- admissionPlugins := admissionplugins .New ()
116113 k8sPlugins , err := k8s_plugins .New (kubeClient , informerFactory , int64 (options .VolumeBindingTimeoutSeconds ))
117114 Expect (err ).NotTo (HaveOccurred ())
118115 binderPlugins .RegisterPlugin (k8sPlugins )
119116 clientWithWatch , err := client .NewWithWatch (cfg , client.Options {})
120117 Expect (err ).NotTo (HaveOccurred ())
121- gpuSharingPlugin := gpusharing .New (clientWithWatch , options .GpuCdiEnabled , options .GPUSharingEnabled )
122- admissionPlugins .RegisterPlugin (gpuSharingPlugin )
123118
124119 rrs := resourcereservation .NewService (false , clientWithWatch , "" , 40 * time .Second ,
125120 resourceReservationNameSpace , resourceReservationServiceAccount , resourceReservationAppLabelValue , scalingPodsNamespace )
0 commit comments