Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for PreScore (0.38 sec)

  1. pkg/scheduler/framework/plugins/interpodaffinity/scoring.go

    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    // preScoreStateKey is the key in CycleState to InterPodAffinity pre-computed data for Scoring.
    const preScoreStateKey = "PreScore" + Name
    
    type scoreMap map[string]map[string]int64
    
    // preScoreState computed at PreScore and used at Score.
    type preScoreState struct {
    	topologyScore scoreMap
    	podInfo       *framework.PodInfo
    	// A copy of the incoming pod's namespace labels.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity.go

    	return nil
    }
    
    // preScoreState computed at PreScore and used at Score.
    type preScoreState struct {
    	preferredNodeAffinity *nodeaffinity.PreferredSchedulingTerms
    }
    
    // Clone implements the mandatory Clone interface. We don't really copy the data since
    // there is no need for that.
    func (s *preScoreState) Clone() framework.StateData {
    	return s
    }
    
    // PreScore builds and writes cycle state used by Score and NormalizeScore.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  3. pkg/scheduler/metrics/metrics.go

    	PreFilterExtensionRemovePod = "PreFilterExtensionRemovePod"
    	PostFilter                  = "PostFilter"
    	PreScore                    = "PreScore"
    	Score                       = "Score"
    	ScoreExtensionNormalize     = "ScoreExtensionNormalize"
    	PreBind                     = "PreBind"
    	Bind                        = "Bind"
    	PostBind                    = "PostBind"
    	Reserve                     = "Reserve"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 08:22:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_test.go

    				return
    			}
    
    			var gotScores framework.NodeScoreList
    			for _, n := range test.nodes {
    				status := p.(framework.PreScorePlugin).PreScore(ctx, state, test.requestedPod, tf.BuildNodeInfos(test.nodes))
    				if !status.IsSuccess() {
    					t.Errorf("PreScore is expected to return success, but didn't. Got status: %v", status)
    				}
    				score, status := p.(framework.ScorePlugin).Score(ctx, state, test.requestedPod, n.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/component-helpers/scheduling/corev1/nodeaffinity"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    const preScoreStateKey = "PreScore" + Name
    const invalidScore = -1
    
    // preScoreState computed at PreScore and used at Score.
    // Fields are exported for comparison during testing.
    type preScoreState struct {
    	Constraints []topologySpreadConstraint
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/noderesources/balanced_allocation_test.go

    			state := framework.NewCycleState()
    			for i := range test.nodes {
    				if test.runPreScore {
    					status := p.(framework.PreScorePlugin).PreScore(ctx, state, test.pod, tf.BuildNodeInfos(test.nodes))
    					if !status.IsSuccess() {
    						t.Errorf("PreScore is expected to return success, but didn't. Got status: %v", status)
    					}
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/nodeaffinity/node_affinity_test.go

    			},
    			expectedList: []framework.NodeScore{{Name: "node1", Score: 0}, {Name: "node2", Score: 0}, {Name: "node3", Score: 0}},
    		},
    		{
    			// PreScore returns Skip.
    			name: "Skip is returned in PreScore when NodeAffinity is nil",
    			pod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Annotations: map[string]string{},
    				},
    			},
    			nodes: []*v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 12:00:10 UTC 2023
    - 38.7K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/noderesources/fit.go

    // there is no need for that.
    func (s *preScoreState) Clone() framework.StateData {
    	return s
    }
    
    // PreScore calculates incoming pod's resource requests and writes them to the cycle state used.
    func (f *Fit) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*framework.NodeInfo) *framework.Status {
    	state := &preScoreState{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/validation/validation.go

    			"queueSort":  profile.Plugins.QueueSort,
    			"preFilter":  profile.Plugins.PreFilter,
    			"filter":     profile.Plugins.Filter,
    			"postFilter": profile.Plugins.PostFilter,
    			"preScore":   profile.Plugins.PreScore,
    			"score":      profile.Plugins.Score,
    			"reserve":    profile.Plugins.Reserve,
    			"permit":     profile.Plugins.Permit,
    			"preBind":    profile.Plugins.PreBind,
    			"bind":       profile.Plugins.Bind,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/interpodaffinity/scoring_test.go

    			status := p.(framework.PreScorePlugin).PreScore(ctx, state, test.pod, tf.BuildNodeInfos(test.nodes))
    
    			if !status.IsSuccess() {
    				if status.Code() != test.wantStatus.Code() {
    					t.Errorf("InterPodAffinity#PreScore() returned unexpected status.Code got: %v, want: %v", status.Code(), test.wantStatus.Code())
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 44.8K bytes
    - Viewed (0)
Back to top