- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for podLabelsMatchSpreadConstraints (0.3 sec)
-
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) -
pkg/scheduler/framework/plugins/podtopologyspread/plugin.go
return framework.QueueSkip, nil } // Pod is added. Return Queue when the added Pod has a label that matches with topologySpread's selector. if modifiedPod != nil { if podLabelsMatchSpreadConstraints(constraints, modifiedPod.Labels) { logger.V(5).Info("a scheduled pod was created and it matches with the pod's topology spread constraints", "pod", klog.KObj(pod), "createdPod", klog.KObj(modifiedPod))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 12.7K bytes - Viewed (0)