Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for RegisterQueueSortPlugin (0.22 sec)

  1. pkg/scheduler/extender_test.go

    		nodes           []string
    		expectedResult  ScheduleResult
    		expectsErr      bool
    	}{
    		{
    			registerPlugins: []tf.RegisterPluginFunc{
    				tf.RegisterFilterPlugin("TrueFilter", tf.NewTrueFilterPlugin),
    				tf.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
    				tf.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
    			},
    			extenders: []tf.FakeExtender{
    				{
    					ExtenderName: "FakeExtender1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. pkg/scheduler/schedule_one_test.go

    				}
    				gotBinding = action.(clienttesting.CreateAction).GetObject().(*v1.Binding)
    				return true, gotBinding, item.injectBindError
    			})
    			registerPluginFuncs := append(item.registerPluginFuncs,
    				tf.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
    				tf.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
    			)
    			ctx, cancel := context.WithCancel(context.Background())
    			defer cancel()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  3. pkg/scheduler/testing/framework/framework_helpers.go

    // to register a Filter Plugin to a given registry.
    type RegisterPluginFunc func(reg *runtime.Registry, profile *schedulerapi.KubeSchedulerProfile)
    
    // RegisterQueueSortPlugin returns a function to register a QueueSort Plugin to a given registry.
    func RegisterQueueSortPlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc {
    	return RegisterPluginAsExtensions(pluginName, pluginNewFunc, "QueueSort")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/preemption/preemption_test.go

    			},
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			logger, _ := ktesting.NewTestContext(t)
    			registeredPlugins := append([]tf.RegisterPluginFunc{
    				tf.RegisterQueueSortPlugin(queuesort.Name, queuesort.New)},
    				tf.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
    			)
    			var objs []runtime.Object
    			for _, p := range append(tt.testPods, tt.initPods...) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  5. pkg/scheduler/scheduler_test.go

    	client kubernetes.Interface, informerFactory informers.SharedInformerFactory) (*Scheduler, framework.Framework, error) {
    	logger := klog.FromContext(ctx)
    	registerPluginFuncs := []tf.RegisterPluginFunc{
    		tf.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
    		tf.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
    	}
    	eventBroadcaster := events.NewBroadcaster(&events.EventSinkImpl{Interface: client.EventsV1()})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			for i := range tt.pods {
    				podInformer.GetStore().Add(tt.pods[i])
    			}
    			// Register NodeResourceFit as the Filter & PreFilter plugin.
    			registeredPlugins := []tf.RegisterPluginFunc{
    				tf.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
    				tf.RegisterPluginAsExtensions(noderesources.Name, nodeResourcesFitFunc, "Filter", "PreFilter"),
    				tf.RegisterPluginAsExtensions("test-plugin", newTestPlugin, "PreFilter"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top