Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for podLabelsMatchSpreadConstraints (0.41 sec)

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

    			continue
    		}
    		if selector.Matches(labels.Set(p.Pod.Labels)) {
    			count++
    		}
    	}
    	return count
    }
    
    // podLabelsMatchSpreadConstraints returns whether tha labels matches with the selector in any of topologySpreadConstraint
    func podLabelsMatchSpreadConstraints(constraints []topologySpreadConstraint, labels labels.Set) bool {
    	for _, c := range constraints {
    		if c.Selector.Matches(labels) {
    			return true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top