Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoredForTopology ¶ added in v0.5.3
func TopologyListOptions ¶ added in v0.5.3
func TopologyListOptions(namespace string, constraint *v1.TopologySpreadConstraint) *client.ListOptions
Types ¶
type Schedule ¶
type Schedule struct { *v1alpha5.Constraints // Pods is a set of pods that may schedule to the node; used for binpacking. Pods []*v1.Pod }
type Scheduler ¶
func NewScheduler ¶
type TopologyGroup ¶
type TopologyGroup struct { Constraint v1.TopologySpreadConstraint Pods []*v1.Pod // contains filtered or unexported fields }
TopologyGroup is a set of pods that share a topology spread constraint
func NewTopologyGroup ¶
func NewTopologyGroup(pod *v1.Pod, constraint v1.TopologySpreadConstraint) *TopologyGroup
func (*TopologyGroup) Increment ¶
func (t *TopologyGroup) Increment(domain string)
Increment increments the spread of a registered domain
func (*TopologyGroup) NextDomain ¶
func (t *TopologyGroup) NextDomain(requirement sets.String) string
NextDomain chooses a domain within the constraints that minimizes skew
func (*TopologyGroup) Register ¶
func (t *TopologyGroup) Register(domains ...string)
Click to show internal directories.
Click to hide internal directories.