Skip to content

Commit 1962e80

Browse files
committed
[YUNIKORN-3275] Remove code: clean up shim scheduler bootstrap code in pkg/shim/scheduler.go (#1024)
Closes: #1024 Signed-off-by: Manikandan R <manirajv06@gmail.com>
1 parent 6ea3123 commit 1962e80

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

pkg/shim/scheduler.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,6 @@ func NewShimScheduler(scheduler api.SchedulerAPI, configs *conf.SchedulerConf, b
8787
return newShimSchedulerInternal(context, apiFactory, rmCallback)
8888
}
8989

90-
func NewShimSchedulerForPlugin(scheduler api.SchedulerAPI, informerFactory informers.SharedInformerFactory, configs *conf.SchedulerConf, bootstrapConfigMaps []*v1.ConfigMap) *KubernetesShim {
91-
apiFactory := client.NewAPIFactory(scheduler, informerFactory, configs, false)
92-
context := cache.NewContextWithBootstrapConfigMaps(apiFactory, bootstrapConfigMaps)
93-
utils.SetPluginMode(true)
94-
rmCallback := cache.NewAsyncRMCallback(context)
95-
return newShimSchedulerInternal(context, apiFactory, rmCallback)
96-
}
97-
9890
// this is visible for testing
9991
func newShimSchedulerInternal(ctx *cache.Context, apiFactory client.APIProvider, cb api.ResourceManagerCallback) *KubernetesShim {
10092
ss := &KubernetesShim{

0 commit comments

Comments
 (0)