|
@@ -24,8 +24,6 @@ import (
|
|
|
|
|
|
"k8s.io/klog"
|
|
|
|
|
|
- "github.com/iwita/kube-scheduler/customcache"
|
|
|
-
|
|
|
v1 "k8s.io/api/core/v1"
|
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
|
"k8s.io/apimachinery/pkg/runtime"
|
|
@@ -445,14 +443,14 @@ func (sched *Scheduler) bind(assumed *v1.Pod, b *v1.Binding) error {
|
|
|
// scheduleOne does the entire scheduling workflow for a single pod. It is serialized on the scheduling algorithm's host fitting.
|
|
|
func (sched *Scheduler) scheduleOne() {
|
|
|
|
|
|
- // Check if the cache needs update
|
|
|
- select {
|
|
|
- // clean the cache if 10 seconds are passed
|
|
|
- case <-customcache.LabCache.Timeout.C:
|
|
|
- klog.Infof("Time to erase")
|
|
|
- customcache.LabCache.CleanCache()
|
|
|
- default:
|
|
|
- }
|
|
|
+ // // Check if the cache needs update
|
|
|
+ // select {
|
|
|
+ // // clean the cache if 10 seconds are passed
|
|
|
+ // case <-customcache.LabCache.Timeout.C:
|
|
|
+ // klog.Infof("Time to erase")
|
|
|
+ // customcache.LabCache.CleanCache()
|
|
|
+ // default:
|
|
|
+ // }
|
|
|
|
|
|
fwk := sched.config.Framework
|
|
|
|