Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for QueueSort (0.15 sec)

  1. pkg/scheduler/apis/config/validation/validation.go

    	if profiles[0].Plugins != nil {
    		canon = profiles[0].Plugins.QueueSort
    		if len(profiles[0].Plugins.QueueSort.Enabled) != 0 {
    			queueSortName = profiles[0].Plugins.QueueSort.Enabled[0].Name
    		}
    		length := len(profiles[0].Plugins.QueueSort.Enabled)
    		if length > 1 {
    			errs = append(errs, field.Invalid(path.Index(0).Child("plugins", "queueSort", "Enabled"), length, "only one queue sort plugin can be enabled"))
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. pkg/scheduler/scheduler_test.go

    						Plugins: &schedulerapi.Plugins{
    							QueueSort: schedulerapi.PluginSet{Enabled: []schedulerapi.Plugin{{Name: "PrioritySort"}}},
    							Bind:      schedulerapi.PluginSet{Enabled: []schedulerapi.Plugin{{Name: "DefaultBinder"}}},
    						},
    					},
    					schedulerapi.KubeSchedulerProfile{
    						SchedulerName: "bar",
    						Plugins: &schedulerapi.Plugins{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
  3. pkg/scheduler/extender_test.go

    		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)
  4. pkg/scheduler/apis/config/validation/validation_test.go

    		SchedulerName: "me",
    		Plugins: &config.Plugins{
    			QueueSort: config.PluginSet{
    				Enabled: []config.Plugin{{Name: "PrioritySort"}},
    			},
    		},
    		PluginConfig: []config.PluginConfig{{
    			Name: "PrioritySort",
    		}},
    	}, {
    		SchedulerName: "other",
    		Plugins: &config.Plugins{
    			QueueSort: config.PluginSet{
    				Enabled: []config.Plugin{{Name: "CustomSort"}},
    			},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. 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...) {
    				objs = append(objs, p)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/types.go

    	// should be disabled.
    	// When no enabled or disabled plugin is specified for an extension point,
    	// default plugins for that extension point will be used if there is any.
    	// If a QueueSort plugin is specified, the same QueueSort Plugin and
    	// PluginConfig must be specified for all profiles.
    	Plugins *Plugins
    
    	// PluginConfig is an optional set of custom plugin arguments for each plugin.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 18:47:23 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. cmd/kube-scheduler/app/options/options_test.go

    				Profiles: []kubeschedulerconfig.KubeSchedulerProfile{
    					{
    						SchedulerName: "high-throughput-profile",
    						Plugins: &kubeschedulerconfig.Plugins{
    							QueueSort:  defaults.PluginsV1.QueueSort,
    							PreFilter:  defaults.PluginsV1.PreFilter,
    							Filter:     defaults.PluginsV1.Filter,
    							PostFilter: defaults.PluginsV1.PostFilter,
    							PreScore: kubeschedulerconfig.PluginSet{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 30.3K bytes
    - Viewed (0)
  8. pkg/scheduler/apis/config/v1/zz_generated.conversion.go

    	if err := Convert_v1_PluginSet_To_config_PluginSet(&in.PreEnqueue, &out.PreEnqueue, s); err != nil {
    		return err
    	}
    	if err := Convert_v1_PluginSet_To_config_PluginSet(&in.QueueSort, &out.QueueSort, s); err != nil {
    		return err
    	}
    	if err := Convert_v1_PluginSet_To_config_PluginSet(&in.PreFilter, &out.PreFilter, s); err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 18:47:23 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/zz_generated.deepcopy.go

    func (in *Plugins) DeepCopyInto(out *Plugins) {
    	*out = *in
    	in.PreEnqueue.DeepCopyInto(&out.PreEnqueue)
    	in.QueueSort.DeepCopyInto(&out.QueueSort)
    	in.PreFilter.DeepCopyInto(&out.PreFilter)
    	in.Filter.DeepCopyInto(&out.Filter)
    	in.PostFilter.DeepCopyInto(&out.PostFilter)
    	in.PreScore.DeepCopyInto(&out.PreScore)
    	in.Score.DeepCopyInto(&out.Score)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 22:02:57 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/interface.go

    }
    
    // LessFunc is the function to sort pod info
    type LessFunc func(podInfo1, podInfo2 *QueuedPodInfo) bool
    
    // QueueSortPlugin is an interface that must be implemented by "QueueSort" plugins.
    // These plugins are used to sort pods in the scheduling queue. Only one queue sort
    // plugin may be enabled at a time.
    type QueueSortPlugin interface {
    	Plugin
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
Back to top