Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewCycleState (0.44 sec)

  1. pkg/scheduler/framework/preemption/preemption_test.go

    			})
    
    			fakePostPlugin := &FakePostFilterPlugin{numViolatingVictim: tt.numViolatingVictim}
    
    			for cycle, pod := range tt.testPods {
    				state := framework.NewCycleState()
    				pe := Evaluator{
    					PluginName: "FakePostFilter",
    					Handler:    fwk,
    					Interface:  fakePostPlugin,
    					State:      state,
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/imagelocality/image_locality_test.go

    		t.Run(test.name, func(t *testing.T) {
    			_, 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)
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 19 06:17:57 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. pkg/scheduler/extender_test.go

    				Extenders:                extenders,
    				logger:                   logger,
    			}
    			sched.applyDefaultHandlers()
    
    			podIgnored := &v1.Pod{}
    			result, err := sched.SchedulePod(ctx, fwk, framework.NewCycleState(), podIgnored)
    			if test.expectsErr {
    				if err == nil {
    					t.Errorf("Unexpected non-error, result %+v", result)
    				}
    			} else {
    				if err != nil {
    					t.Errorf("Unexpected error: %v", err)
    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/framework/plugins/tainttoleration/taint_toleration_test.go

    		},
    	}
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			_, 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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. pkg/scheduler/schedule_one.go

    		return
    	}
    
    	logger.V(3).Info("Attempting to schedule pod", "pod", klog.KObj(pod))
    
    	// Synchronously attempt to find a fit for the pod.
    	start := time.Now()
    	state := framework.NewCycleState()
    	state.SetRecordPluginMetrics(rand.Intn(100) < pluginMetricsSamplePercent)
    
    	// Initialize an empty podsToActivate struct, which will be filled up by plugins or stay empty.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:28:08 UTC 2024
    - 43.4K bytes
    - Viewed (0)
Back to top