Skip to content

Commit dca7acf

Browse files
committed
work around k/k#121630
1 parent 4316ba9 commit dca7acf

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

test/integration/allocatable_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ func TestAllocatablePlugin(t *testing.T) {
5050
if err != nil {
5151
t.Fatal(err)
5252
}
53+
// Work around https://github.com/kubernetes/kubernetes/issues/121630.
54+
cfg.Profiles[0].Plugins.PreScore = schedapi.PluginSet{
55+
Disabled: []schedapi.Plugin{{Name: "*"}},
56+
}
5357
cfg.Profiles[0].Plugins.Score = schedapi.PluginSet{
5458
Enabled: []schedapi.Plugin{{Name: noderesources.AllocatableName, Weight: 50000}},
5559
Disabled: []schedapi.Plugin{{Name: "*"}},

test/integration/loadVariationRiskBalancing_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ func TestLoadVariationRiskBalancingPlugin(t *testing.T) {
113113
if err != nil {
114114
t.Fatal(err)
115115
}
116+
// Work around https://github.com/kubernetes/kubernetes/issues/121630.
117+
cfg.Profiles[0].Plugins.PreScore = schedapi.PluginSet{
118+
Disabled: []schedapi.Plugin{{Name: "*"}},
119+
}
116120
cfg.Profiles[0].Plugins.Score = schedapi.PluginSet{
117121
Enabled: []schedapi.Plugin{
118122
{Name: loadvariationriskbalancing.Name},

test/integration/lowriskovercommitment_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ func TestLowRiskOverCommitmentPlugin(t *testing.T) {
105105
if err != nil {
106106
t.Fatal(err)
107107
}
108+
// Work around https://github.com/kubernetes/kubernetes/issues/121630.
109+
cfg.Profiles[0].Plugins.PreScore = schedapi.PluginSet{
110+
Disabled: []schedapi.Plugin{{Name: "*"}},
111+
}
108112
cfg.Profiles[0].Plugins.Score = schedapi.PluginSet{
109113
Enabled: []schedapi.Plugin{
110114
{Name: lowriskovercommitment.Name},

test/integration/pod_state_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ func TestPodStatePlugin(t *testing.T) {
8181
if err != nil {
8282
t.Fatal(err)
8383
}
84+
// Work around https://github.com/kubernetes/kubernetes/issues/121630.
85+
cfg.Profiles[0].Plugins.PreScore = schedapi.PluginSet{
86+
Disabled: []schedapi.Plugin{{Name: "*"}},
87+
}
8488
cfg.Profiles[0].Plugins.Score = schedapi.PluginSet{
8589
Enabled: []schedapi.Plugin{
8690
{Name: podstate.Name},

test/integration/targetloadpacking_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ func TestTargetNodePackingPlugin(t *testing.T) {
9898
if err != nil {
9999
t.Fatal(err)
100100
}
101+
// Work around https://github.com/kubernetes/kubernetes/issues/121630.
102+
cfg.Profiles[0].Plugins.PreScore = schedapi.PluginSet{
103+
Disabled: []schedapi.Plugin{{Name: "*"}},
104+
}
101105
cfg.Profiles[0].Plugins.Score = schedapi.PluginSet{
102106
Enabled: []schedapi.Plugin{
103107
{Name: targetloadpacking.Name},

0 commit comments

Comments
 (0)