Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for NewFramework (0.14 sec)

  1. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactoryTest.groovy

        }
        ForkedTestClasspathFactory underTest = new ForkedTestClasspathFactory(moduleRegistry, classDetectorFactory)
    
        def "creates a limited implementation classpath"() {
            when:
            def framework = newFramework(false, [], [], [], [])
            def classpath = underTest.create([new File("cls.jar")], [new File("mod.jar")], framework, false)
    
            then:
            classpath.applicationClasspath == [new File("cls.jar")]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. pkg/scheduler/scheduler_test.go

    				t.Errorf("Unexpected eventToPlugin map (-want,+got):%s", diff)
    			}
    		})
    	}
    }
    
    func newFramework(ctx context.Context, r frameworkruntime.Registry, profile schedulerapi.KubeSchedulerProfile) (framework.Framework, error) {
    	return frameworkruntime.NewFramework(ctx, r, &profile,
    		frameworkruntime.WithSnapshotSharedLister(internalcache.NewSnapshot(nil, nil)),
    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/framework/preemption/preemption_test.go

    			parallelism := parallelize.DefaultParallelism
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			fwk, err := tf.NewFramework(
    				ctx,
    				registeredPlugins, "",
    				frameworkruntime.WithPodNominator(internalqueue.NewPodNominator(informerFactory.Core().V1().Pods().Lister())),
    				frameworkruntime.WithInformerFactory(informerFactory),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. pkg/scheduler/schedule_one_test.go

    				tf.RegisterBindPlugin(defaultbinder.Name, defaultbinder.New),
    			)
    			ctx, cancel := context.WithCancel(context.Background())
    			defer cancel()
    			fwk, err := tf.NewFramework(ctx,
    				registerPluginFuncs,
    				testSchedulerName,
    				frameworkruntime.WithClientSet(client),
    				frameworkruntime.WithEventRecorder(eventBroadcaster.NewRecorder(scheme.Scheme, testSchedulerName)),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/runtime/framework_test.go

    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			fw, err := NewFramework(ctx, registry, &config.KubeSchedulerProfile{Plugins: tc.plugins})
    			if err != nil {
    				t.Fatalf("Unexpected error during calling NewFramework, got %v", err)
    			}
    			err = fw.Close()
    			if !errors.Is(err, tc.wantErr) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 103K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			if tt.extender != nil {
    				extenders = append(extenders, tt.extender)
    			}
    			logger, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			f, err := tf.NewFramework(ctx, registeredPlugins, "",
    				frameworkruntime.WithClientSet(cs),
    				frameworkruntime.WithEventRecorder(&events.FakeRecorder{}),
    				frameworkruntime.WithInformerFactory(informerFactory),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go

    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			state := framework.NewCycleState()
    			snapshot := cache.NewSnapshot(nil, test.nodes)
    			fh, _ := runtime.NewFramework(ctx, nil, nil, runtime.WithSnapshotSharedLister(snapshot))
    
    			p, err := New(ctx, nil, fh, feature.Features{})
    			if err != nil {
    				t.Fatalf("creating plugin: %v", err)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/runtime/framework.go

    		parallelizer:    parallelize.NewParallelizer(parallelize.DefaultParallelism),
    	}
    }
    
    var _ framework.Framework = &frameworkImpl{}
    
    // NewFramework initializes plugins given the configuration and the registry.
    func NewFramework(ctx context.Context, r Registry, profile *config.KubeSchedulerProfile, opts ...Option) (framework.Framework, error) {
    	options := defaultFrameworkOptions(ctx.Done())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 60.9K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			state := framework.NewCycleState()
    			snapshot := cache.NewSnapshot(test.existingPods, test.nodes)
    			fh, _ := runtime.NewFramework(ctx, nil, nil, runtime.WithSnapshotSharedLister(snapshot))
    			args := test.nodeResourcesFitArgs
    			p, err := NewFit(ctx, &args, fh, plfeature.Features{})
    			if err != nil {
    				t.Fatalf("unexpected error: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    	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)
    	}
    
    	pl, err := New(tCtx, nil, fh, feature.Features{EnableDynamicResourceAllocation: true})
    	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