Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FakePermit (0.22 sec)

  1. pkg/scheduler/scheduler_test.go

    	queueSort                      = "no-op-queue-sort-plugin"
    	fakeBind                       = "bind-plugin"
    	emptyEventExtensions           = "emptyEventExtensions"
    	fakePermit                     = "fakePermit"
    )
    
    func Test_buildQueueingHintMap(t *testing.T) {
    	tests := []struct {
    		name                string
    		plugins             []framework.Plugin
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 42K bytes
    - Viewed (0)
  2. pkg/scheduler/testing/framework/fake_plugins.go

    type FakePermitPlugin struct {
    	Status  *framework.Status
    	Timeout time.Duration
    }
    
    // Name returns name of the plugin.
    func (pl *FakePermitPlugin) Name() string {
    	return "FakePermit"
    }
    
    // Permit invoked at the Permit extension point.
    func (pl *FakePermitPlugin) Permit(_ context.Context, _ *framework.CycleState, _ *v1.Pod, _ string) (*framework.Status, time.Duration) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. pkg/scheduler/schedule_one_test.go

    				tf.RegisterPermitPlugin("FakePermit", tf.NewFakePermitPlugin(framework.NewStatus(framework.Error, "permit error"), time.Minute)),
    			},
    			expectErrorPod:   podWithID("foo", testNode.Name),
    			expectForgetPod:  podWithID("foo", testNode.Name),
    			expectAssumedPod: podWithID("foo", testNode.Name),
    			expectError:      fmt.Errorf(`running Permit plugin "FakePermit": %w`, errors.New("permit error")),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top