@@ -37,14 +37,14 @@ import (
37
37
clientsetfake "k8s.io/client-go/kubernetes/fake"
38
38
pvutil "k8s.io/kubernetes/pkg/controller/volume/persistentvolume/util"
39
39
schedulerapi "k8s.io/kubernetes/pkg/scheduler/apis/config"
40
+ "k8s.io/kubernetes/pkg/scheduler/framework"
40
41
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/defaultbinder"
41
42
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/noderesources"
42
43
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/podtopologyspread"
43
44
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/queuesort"
44
45
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/selectorspread"
45
46
"k8s.io/kubernetes/pkg/scheduler/framework/plugins/volumebinding"
46
47
frameworkruntime "k8s.io/kubernetes/pkg/scheduler/framework/runtime"
47
- framework "k8s.io/kubernetes/pkg/scheduler/framework/v1alpha1"
48
48
internalcache "k8s.io/kubernetes/pkg/scheduler/internal/cache"
49
49
internalqueue "k8s.io/kubernetes/pkg/scheduler/internal/queue"
50
50
"k8s.io/kubernetes/pkg/scheduler/profile"
@@ -72,14 +72,14 @@ func (pl *noPodsFilterPlugin) Filter(_ context.Context, _ *framework.CycleState,
72
72
}
73
73
74
74
// NewNoPodsFilterPlugin initializes a noPodsFilterPlugin and returns it.
75
- func NewNoPodsFilterPlugin (_ runtime.Object , _ framework.FrameworkHandle ) (framework.Plugin , error ) {
75
+ func NewNoPodsFilterPlugin (_ runtime.Object , _ framework.Handle ) (framework.Plugin , error ) {
76
76
return & noPodsFilterPlugin {}, nil
77
77
}
78
78
79
79
type numericMapPlugin struct {}
80
80
81
81
func newNumericMapPlugin () frameworkruntime.PluginFactory {
82
- return func (_ runtime.Object , _ framework.FrameworkHandle ) (framework.Plugin , error ) {
82
+ return func (_ runtime.Object , _ framework.Handle ) (framework.Plugin , error ) {
83
83
return & numericMapPlugin {}, nil
84
84
}
85
85
}
@@ -103,7 +103,7 @@ func (pl *numericMapPlugin) ScoreExtensions() framework.ScoreExtensions {
103
103
type reverseNumericMapPlugin struct {}
104
104
105
105
func newReverseNumericMapPlugin () frameworkruntime.PluginFactory {
106
- return func (_ runtime.Object , _ framework.FrameworkHandle ) (framework.Plugin , error ) {
106
+ return func (_ runtime.Object , _ framework.Handle ) (framework.Plugin , error ) {
107
107
return & reverseNumericMapPlugin {}, nil
108
108
}
109
109
}
@@ -144,7 +144,7 @@ func (pl *reverseNumericMapPlugin) NormalizeScore(_ context.Context, _ *framewor
144
144
type trueMapPlugin struct {}
145
145
146
146
func newTrueMapPlugin () frameworkruntime.PluginFactory {
147
- return func (_ runtime.Object , _ framework.FrameworkHandle ) (framework.Plugin , error ) {
147
+ return func (_ runtime.Object , _ framework.Handle ) (framework.Plugin , error ) {
148
148
return & trueMapPlugin {}, nil
149
149
}
150
150
}
@@ -173,7 +173,7 @@ func (pl *trueMapPlugin) NormalizeScore(_ context.Context, _ *framework.CycleSta
173
173
type falseMapPlugin struct {}
174
174
175
175
func newFalseMapPlugin () frameworkruntime.PluginFactory {
176
- return func (_ runtime.Object , _ framework.FrameworkHandle ) (framework.Plugin , error ) {
176
+ return func (_ runtime.Object , _ framework.Handle ) (framework.Plugin , error ) {
177
177
return & falseMapPlugin {}, nil
178
178
}
179
179
}
@@ -912,7 +912,7 @@ func TestFindFitPredicateCallCounts(t *testing.T) {
912
912
plugin := st.FakeFilterPlugin {}
913
913
registerFakeFilterFunc := st .RegisterFilterPlugin (
914
914
"FakeFilter" ,
915
- func (_ runtime.Object , fh framework.FrameworkHandle ) (framework.Plugin , error ) {
915
+ func (_ runtime.Object , fh framework.Handle ) (framework.Plugin , error ) {
916
916
return & plugin , nil
917
917
},
918
918
)
0 commit comments