Documentation ¶
Index ¶
- Constants
- func New(_ runtime.Object, handler handle.UnitFrameworkHandle) (framework.Plugin, error)
- type JobLevelAffinity
- func (i *JobLevelAffinity) Grouping(ctx context.Context, unit framework.ScheduleUnit, ...) ([]framework.NodeGroup, *framework.Status)
- func (i *JobLevelAffinity) Locating(ctx context.Context, unit framework.ScheduleUnit, ...) (framework.NodeGroup, *framework.Status)
- func (i *JobLevelAffinity) Name() string
- func (i *JobLevelAffinity) PreparePreferNode(ctx context.Context, unitCycleState, state *framework.CycleState, pod *v1.Pod) *framework.Status
- type TopologyError
Constants ¶
View Source
const (
Name = "JobLevelAffinity"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JobLevelAffinity ¶
type JobLevelAffinity struct {
// contains filtered or unexported fields
}
func (*JobLevelAffinity) Grouping ¶
func (i *JobLevelAffinity) Grouping(ctx context.Context, unit framework.ScheduleUnit, unitCycleState *framework.CycleState, nodeGroup framework.NodeGroup) ([]framework.NodeGroup, *framework.Status)
func (*JobLevelAffinity) Locating ¶
func (i *JobLevelAffinity) Locating(ctx context.Context, unit framework.ScheduleUnit, unitCycleState *framework.CycleState, nodeGroup framework.NodeGroup) (framework.NodeGroup, *framework.Status)
func (*JobLevelAffinity) Name ¶
func (i *JobLevelAffinity) Name() string
func (*JobLevelAffinity) PreparePreferNode ¶
func (i *JobLevelAffinity) PreparePreferNode(ctx context.Context, unitCycleState, state *framework.CycleState, pod *v1.Pod) *framework.Status
type TopologyError ¶
type TopologyError struct {
// contains filtered or unexported fields
}
func (*TopologyError) Error ¶
func (err *TopologyError) Error() string
Click to show internal directories.
Click to hide internal directories.