Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for NewFramework (0.17 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/framework/plugins/testing/testing.go

    	objs = append([]runtime.Object{&v1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: ""}}}, objs...)
    	informerFactory := informers.NewSharedInformerFactory(fake.NewSimpleClientset(objs...), 0)
    	fh, err := frameworkruntime.NewFramework(ctx, nil, nil,
    		frameworkruntime.WithSnapshotSharedLister(sharedLister),
    		frameworkruntime.WithInformerFactory(informerFactory))
    	if err != nil {
    		tb.Fatalf("Failed creating framework runtime: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. pkg/scheduler/testing/framework/framework_helpers.go

    	"k8s.io/kubernetes/pkg/scheduler/framework"
    	"k8s.io/kubernetes/pkg/scheduler/framework/runtime"
    )
    
    var configDecoder = scheme.Codecs.UniversalDecoder()
    
    // NewFramework creates a Framework from the register functions and options.
    func NewFramework(ctx context.Context, fns []RegisterPluginFunc, profileName string, opts ...runtime.Option) (framework.Framework, error) {
    	registry := runtime.Registry{}
    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/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)
  5. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_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))
    
    			p, err := NewFit(ctx, &config.NodeResourcesFitArgs{
    				ScoringStrategy: &config.ScoringStrategy{
    					Type:      config.RequestedToCapacityRatio,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  6. pkg/scheduler/profile/profile.go

    	opts ...frameworkruntime.Option) (framework.Framework, error) {
    	recorder := recorderFact(cfg.SchedulerName)
    	opts = append(opts, frameworkruntime.WithEventRecorder(recorder))
    	return frameworkruntime.NewFramework(ctx, r, &cfg, opts...)
    }
    
    // Map holds frameworks indexed by scheduler name.
    type Map map[string]framework.Framework
    
    // NewMap builds the frameworks given by the configuration, indexed by name.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 06 01:11:19 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. pkg/scheduler/framework/plugins/imagelocality/image_locality_test.go

    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			snapshot := cache.NewSnapshot(nil, test.nodes)
    			state := framework.NewCycleState()
    			fh, _ := runtime.NewFramework(ctx, nil, nil, runtime.WithSnapshotSharedLister(snapshot))
    
    			p, err := New(ctx, nil, fh)
    			if err != nil {
    				t.Fatalf("creating plugin: %v", err)
    			}
    			var gotList framework.NodeScoreList
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 06:17:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/noderesources/balanced_allocation_test.go

    		t.Run(test.name, func(t *testing.T) {
    			snapshot := cache.NewSnapshot(test.pods, test.nodes)
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			fh, _ := runtime.NewFramework(ctx, nil, nil, runtime.WithSnapshotSharedLister(snapshot))
    			p, _ := NewBalancedAllocation(ctx, &test.args, fh, feature.Features{})
    			state := framework.NewCycleState()
    			for i := range test.nodes {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 15.9K bytes
    - Viewed (0)
Back to top