- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for buildDefaultConstraints (0.18 sec)
-
pkg/scheduler/framework/plugins/podtopologyspread/common.go
return false } } return true } // buildDefaultConstraints builds the constraints for a pod using // .DefaultConstraints and the selectors from the services, replication // controllers, replica sets and stateful sets that match the pod. func (pl *PodTopologySpread) buildDefaultConstraints(p *v1.Pod, action v1.UnsatisfiableConstraintAction) ([]topologySpreadConstraint, error) {
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
pod.Labels, v1.DoNotSchedule, ) if err != nil { return nil, fmt.Errorf("obtaining pod's hard topology spread constraints: %w", err) } } else { constraints, err = pl.buildDefaultConstraints(pod, v1.DoNotSchedule) if err != nil { return nil, fmt.Errorf("setting default hard topology spread constraints: %w", err) } } return constraints, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 16 14:13:06 UTC 2024 - 12.7K bytes - Viewed (0)