Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pluginFactory (0.14 sec)

  1. pkg/scheduler/scheduler_test.go

    	testingclock "k8s.io/utils/clock/testing"
    	"k8s.io/utils/ptr"
    )
    
    func TestSchedulerCreation(t *testing.T) {
    	invalidRegistry := map[string]frameworkruntime.PluginFactory{
    		defaultbinder.Name: defaultbinder.New,
    	}
    	validRegistry := map[string]frameworkruntime.PluginFactory{
    		"Foo": defaultbinder.New,
    	}
    	cases := []struct {
    		name          string
    		opts          []Option
    		wantErr       string
    		wantProfiles  []string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
  2. cmd/kube-scheduler/app/server.go

    // hence there are no references to it from the kubernetes scheduler code base.
    func WithPlugin(name string, factory runtime.PluginFactory) Option {
    	return func(registry runtime.Registry) error {
    		return registry.Register(name, factory)
    	}
    }
    
    // Setup creates a completed config and a scheduler based on the command args and options
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top