Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isSchedulableAfterPodChange (0.82 sec)

  1. pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates.go

    	}
    }
    
    // New initializes a new plugin and returns it.
    func New(_ context.Context, _ runtime.Object, _ framework.Handle, fts feature.Features) (framework.Plugin, error) {
    	return &SchedulingGates{
    		enableSchedulingQueueHint: fts.EnableSchedulingQueueHint,
    	}, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/tainttoleration/taint_toleration.go

    	}, nil
    }
    
    // isSchedulableAfterPodChange is invoked whenever a pod changed. It checks whether
    // that change made a previously unschedulable pod schedulable.
    // When an unscheduled Pod, which was rejected by TaintToleration, is updated to have a new toleration,
    // it may make the Pod schedulable.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates_test.go

    			logger, ctx := ktesting.NewTestContext(t)
    			p, err := New(ctx, nil, nil, feature.Features{})
    			if err != nil {
    				t.Fatalf("Creating plugin: %v", err)
    			}
    			actualHint, err := p.(*SchedulingGates).isSchedulableAfterPodChange(logger, tc.pod, tc.oldObj, tc.newObj)
    			if tc.expectedErr {
    				require.Error(t, err)
    				return
    			}
    			require.NoError(t, err)
    			require.Equal(t, tc.expectedHint, actualHint)
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top