Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MatchNum (0.34 sec)

  1. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    	if i >= 0 {
    		// `tpVal` exists
    		p[i].MatchNum = num
    		if p[0].MatchNum > p[1].MatchNum {
    			// swap paths[0] and paths[1]
    			p[0], p[1] = p[1], p[0]
    		}
    	} else {
    		// `tpVal` doesn't exist
    		if num < p[0].MatchNum {
    			// update paths[1] with paths[0]
    			p[1] = p[0]
    			// update paths[0]
    			p[0].TopologyValue, p[0].MatchNum = tpVal, num
    		} else if num < p[1].MatchNum {
    			// update paths[1]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    	barSelector        = st.MakeLabelSelector().Exists("bar").Obj()
    
    	taints = []v1.Taint{{Key: v1.TaintNodeUnschedulable, Value: "", Effect: v1.TaintEffectNoSchedule}}
    )
    
    func (p *criticalPaths) sort() {
    	if p[0].MatchNum == p[1].MatchNum && p[0].TopologyValue > p[1].TopologyValue {
    		// Swap TopologyValue to make them sorted alphabetically.
    		p[0].TopologyValue, p[1].TopologyValue = p[1].TopologyValue, p[0].TopologyValue
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    	}
    
    	// Return if the node is not qualified.
    	if s.IgnoredNodes.Has(node.Name) {
    		return 0, nil
    	}
    
    	// For each present <pair>, current node gets a credit of <matchSum>.
    	// And we sum up <matchSum> and return it as this node's score.
    	var score float64
    	for i, c := range s.Constraints {
    		if tpVal, ok := node.Labels[c.TopologyKey]; ok {
    			var cnt int64
    			if c.TopologyKey == v1.LabelHostname {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top