Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for WithInformerFactory (0.15 sec)

  1. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			defer cancel()
    			f, err := tf.NewFramework(ctx, registeredPlugins, "",
    				frameworkruntime.WithClientSet(cs),
    				frameworkruntime.WithEventRecorder(&events.FakeRecorder{}),
    				frameworkruntime.WithInformerFactory(informerFactory),
    				frameworkruntime.WithPodNominator(internalqueue.NewPodNominator(informerFactory.Core().V1().Pods().Lister())),
    				frameworkruntime.WithExtenders(extenders),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    			f, err := frameworkruntime.NewFramework(ctx, nil, nil,
    				frameworkruntime.WithSnapshotSharedLister(cache.NewSnapshot(nil, tt.nodes)),
    				frameworkruntime.WithInformerFactory(informerFactory))
    			if err != nil {
    				t.Fatalf("Failed creating framework runtime: %v", err)
    			}
    			pl, err := New(ctx, &tt.config, f, feature.Features{})
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/runtime/framework.go

    func WithEventRecorder(recorder events.EventRecorder) Option {
    	return func(o *frameworkOptions) {
    		o.eventRecorder = recorder
    	}
    }
    
    // WithInformerFactory sets informer factory for the scheduling frameworkImpl.
    func WithInformerFactory(informerFactory informers.SharedInformerFactory) Option {
    	return func(o *frameworkOptions) {
    		o.informerFactory = informerFactory
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    	tc.informerFactory = informers.NewSharedInformerFactory(tc.client, 0)
    
    	opts := []runtime.Option{
    		runtime.WithClientSet(tc.client),
    		runtime.WithInformerFactory(tc.informerFactory),
    	}
    	fh, err := runtime.NewFramework(tCtx, nil, nil, opts...)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
Back to top