- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for FailedNodeReturnCodeMap (0.27 sec)
-
pkg/scheduler/testing/framework/fake_plugins.go
} // FakeFilterPlugin is a test filter plugin to record how many times its Filter() function have // been called, and it returns different 'Code' depending on its internal 'failedNodeReturnCodeMap'. type FakeFilterPlugin struct { NumFilterCalled int32 FailedNodeReturnCodeMap map[string]framework.Code } // Name returns name of the plugin. func (pl *FakeFilterPlugin) Name() string { return "FakeFilter" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 19:07:19 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/scheduler/schedule_one_test.go
FakeFilterPlugin: &tf.FakeFilterPlugin{ // This Filter plugin shouldn't be executed in the Filter extension point due to skip. // To confirm that, return the status code Error to all Nodes. FailedNodeReturnCodeMap: map[string]framework.Code{ "node1": framework.Error, "node2": framework.Error, "node3": framework.Error, }, }, }, nil }, "PreFilter", "Filter"),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:20:55 UTC 2024 - 128.1K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go
snapshot := internalcache.NewSnapshot(tt.initPods, nodes) // For each test, register a FakeFilterPlugin along with essential plugins and tt.registerPlugins. fakePlugin := tf.FakeFilterPlugin{ FailedNodeReturnCodeMap: fakeFilterRCMap, } registeredPlugins := append([]tf.RegisterPluginFunc{ tf.RegisterFilterPlugin( "FakeFilter",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 82.8K bytes - Viewed (0)