diff --git a/pkg/scheduler/actions/allocate/allocate.go b/pkg/scheduler/actions/allocate/allocate.go index 889e339b3b..d6e0432044 100644 --- a/pkg/scheduler/actions/allocate/allocate.go +++ b/pkg/scheduler/actions/allocate/allocate.go @@ -25,9 +25,7 @@ import ( "volcano.sh/volcano/pkg/scheduler/util" ) -type Action struct { - ssn *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/actions/backfill/backfill.go b/pkg/scheduler/actions/backfill/backfill.go index b26c438499..c4cf4738bf 100644 --- a/pkg/scheduler/actions/backfill/backfill.go +++ b/pkg/scheduler/actions/backfill/backfill.go @@ -24,9 +24,7 @@ import ( "volcano.sh/volcano/pkg/scheduler/framework" ) -type Action struct { - ssn *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/actions/enqueue/enqueue.go b/pkg/scheduler/actions/enqueue/enqueue.go index 4677982c52..1c8f0bdccd 100644 --- a/pkg/scheduler/actions/enqueue/enqueue.go +++ b/pkg/scheduler/actions/enqueue/enqueue.go @@ -37,9 +37,7 @@ var ( defaultOverCommitFactor = 1.2 ) -type Action struct { - ssn *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/actions/preempt/preempt.go b/pkg/scheduler/actions/preempt/preempt.go index 1d1928ce43..b8ae9bc4c8 100644 --- a/pkg/scheduler/actions/preempt/preempt.go +++ b/pkg/scheduler/actions/preempt/preempt.go @@ -26,9 +26,7 @@ import ( "volcano.sh/volcano/pkg/scheduler/util" ) -type Action struct { - ssn *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/actions/reclaim/reclaim.go b/pkg/scheduler/actions/reclaim/reclaim.go index 915e5bd434..a9680cbfba 100644 --- a/pkg/scheduler/actions/reclaim/reclaim.go +++ b/pkg/scheduler/actions/reclaim/reclaim.go @@ -25,9 +25,7 @@ import ( "volcano.sh/volcano/pkg/scheduler/util" ) -type Action struct { - ssn *framework.Session -} +type Action struct{} func New() *Action { return &Action{} diff --git a/pkg/scheduler/cache/cache.go b/pkg/scheduler/cache/cache.go index e413312cc0..ce719e57d1 100644 --- a/pkg/scheduler/cache/cache.go +++ b/pkg/scheduler/cache/cache.go @@ -78,7 +78,6 @@ type SchedulerCache struct { podInformer infov1.PodInformer nodeInformer infov1.NodeInformer - nsInformer infov1.NamespaceInformer podGroupInformerV1beta1 vcinformerv1.PodGroupInformer queueInformerV1beta1 vcinformerv1.QueueInformer pvInformer infov1.PersistentVolumeInformer