mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
cleanup duplicated import of "k8s.io/apimachinery/pkg/runtime"
This commit is contained in:
parent
35ae8c9fe4
commit
a55af2d35a
@ -31,7 +31,6 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/api/resource"
|
"k8s.io/apimachinery/pkg/api/resource"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
apiruntime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/types"
|
"k8s.io/apimachinery/pkg/types"
|
||||||
"k8s.io/apimachinery/pkg/util/sets"
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
@ -606,7 +605,7 @@ func TestGenericScheduler(t *testing.T) {
|
|||||||
// Pod with existing PVC
|
// Pod with existing PVC
|
||||||
registerPlugins: []st.RegisterPluginFunc{
|
registerPlugins: []st.RegisterPluginFunc{
|
||||||
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
||||||
st.RegisterPreFilterPlugin(volumebinding.Name, func(plArgs apiruntime.Object, fh framework.Handle) (framework.Plugin, error) {
|
st.RegisterPreFilterPlugin(volumebinding.Name, func(plArgs runtime.Object, fh framework.Handle) (framework.Plugin, error) {
|
||||||
return volumebinding.New(plArgs, fh, feature.Features{})
|
return volumebinding.New(plArgs, fh, feature.Features{})
|
||||||
}),
|
}),
|
||||||
st.RegisterFilterPlugin("TrueFilter", st.NewTrueFilterPlugin),
|
st.RegisterFilterPlugin("TrueFilter", st.NewTrueFilterPlugin),
|
||||||
@ -641,7 +640,7 @@ func TestGenericScheduler(t *testing.T) {
|
|||||||
// Pod with non existing PVC
|
// Pod with non existing PVC
|
||||||
registerPlugins: []st.RegisterPluginFunc{
|
registerPlugins: []st.RegisterPluginFunc{
|
||||||
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
||||||
st.RegisterPreFilterPlugin(volumebinding.Name, func(plArgs apiruntime.Object, fh framework.Handle) (framework.Plugin, error) {
|
st.RegisterPreFilterPlugin(volumebinding.Name, func(plArgs runtime.Object, fh framework.Handle) (framework.Plugin, error) {
|
||||||
return volumebinding.New(plArgs, fh, feature.Features{})
|
return volumebinding.New(plArgs, fh, feature.Features{})
|
||||||
}),
|
}),
|
||||||
st.RegisterFilterPlugin("TrueFilter", st.NewTrueFilterPlugin),
|
st.RegisterFilterPlugin("TrueFilter", st.NewTrueFilterPlugin),
|
||||||
@ -692,7 +691,7 @@ func TestGenericScheduler(t *testing.T) {
|
|||||||
// Pod with deleting PVC
|
// Pod with deleting PVC
|
||||||
registerPlugins: []st.RegisterPluginFunc{
|
registerPlugins: []st.RegisterPluginFunc{
|
||||||
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
||||||
st.RegisterPreFilterPlugin(volumebinding.Name, func(plArgs apiruntime.Object, fh framework.Handle) (framework.Plugin, error) {
|
st.RegisterPreFilterPlugin(volumebinding.Name, func(plArgs runtime.Object, fh framework.Handle) (framework.Plugin, error) {
|
||||||
return volumebinding.New(plArgs, fh, feature.Features{})
|
return volumebinding.New(plArgs, fh, feature.Features{})
|
||||||
}),
|
}),
|
||||||
st.RegisterFilterPlugin("TrueFilter", st.NewTrueFilterPlugin),
|
st.RegisterFilterPlugin("TrueFilter", st.NewTrueFilterPlugin),
|
||||||
@ -1319,11 +1318,11 @@ func TestZeroRequest(t *testing.T) {
|
|||||||
pluginRegistrations := []st.RegisterPluginFunc{
|
pluginRegistrations := []st.RegisterPluginFunc{
|
||||||
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
||||||
st.RegisterScorePlugin(noderesources.FitName,
|
st.RegisterScorePlugin(noderesources.FitName,
|
||||||
func(plArgs apiruntime.Object, fh framework.Handle) (framework.Plugin, error) {
|
func(plArgs runtime.Object, fh framework.Handle) (framework.Plugin, error) {
|
||||||
return noderesources.NewFit(plArgs, fh, feature.Features{})
|
return noderesources.NewFit(plArgs, fh, feature.Features{})
|
||||||
},
|
},
|
||||||
1),
|
1),
|
||||||
st.RegisterScorePlugin(noderesources.BalancedAllocationName, func(plArgs apiruntime.Object, fh framework.Handle) (framework.Plugin, error) {
|
st.RegisterScorePlugin(noderesources.BalancedAllocationName, func(plArgs runtime.Object, fh framework.Handle) (framework.Plugin, error) {
|
||||||
return noderesources.NewBalancedAllocation(plArgs, fh, feature.Features{})
|
return noderesources.NewBalancedAllocation(plArgs, fh, feature.Features{})
|
||||||
}, 1),
|
}, 1),
|
||||||
st.RegisterScorePlugin(selectorspread.Name, selectorspread.New, 1),
|
st.RegisterScorePlugin(selectorspread.Name, selectorspread.New, 1),
|
||||||
|
@ -37,7 +37,6 @@ import (
|
|||||||
"k8s.io/apimachinery/pkg/api/resource"
|
"k8s.io/apimachinery/pkg/api/resource"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
apiruntime "k8s.io/apimachinery/pkg/runtime"
|
|
||||||
"k8s.io/apimachinery/pkg/types"
|
"k8s.io/apimachinery/pkg/types"
|
||||||
"k8s.io/apimachinery/pkg/util/sets"
|
"k8s.io/apimachinery/pkg/util/sets"
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
@ -867,7 +866,7 @@ func TestSchedulerFailedSchedulingReasons(t *testing.T) {
|
|||||||
fns := []st.RegisterPluginFunc{
|
fns := []st.RegisterPluginFunc{
|
||||||
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
|
||||||
st.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
|
st.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
|
||||||
st.RegisterPluginAsExtensions(noderesources.FitName, func(plArgs apiruntime.Object, fh framework.Handle) (framework.Plugin, error) {
|
st.RegisterPluginAsExtensions(noderesources.FitName, func(plArgs runtime.Object, fh framework.Handle) (framework.Plugin, error) {
|
||||||
return noderesources.NewFit(plArgs, fh, feature.Features{})
|
return noderesources.NewFit(plArgs, fh, feature.Features{})
|
||||||
}, "Filter", "PreFilter"),
|
}, "Filter", "PreFilter"),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user