Documentation ¶
Index ¶
- Constants
- type LowestOrdinalPriority
- func (pl *LowestOrdinalPriority) Name() string
- func (pl *LowestOrdinalPriority) NormalizeScore(ctx context.Context, states *state.State, scores state.PodScoreList) *state.Status
- func (pl *LowestOrdinalPriority) Score(ctx context.Context, args interface{}, states *state.State, ...) (uint64, *state.Status)
- func (pl *LowestOrdinalPriority) ScoreExtensions() state.ScoreExtensions
Constants ¶
View Source
const Name = state.LowestOrdinalPriority
Name of the plugin
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LowestOrdinalPriority ¶
type LowestOrdinalPriority struct { }
LowestOrdinalPriority is a score plugin that favors pods that have a lower ordinal
func (*LowestOrdinalPriority) Name ¶
func (pl *LowestOrdinalPriority) Name() string
Name returns name of the plugin
func (*LowestOrdinalPriority) NormalizeScore ¶
func (pl *LowestOrdinalPriority) NormalizeScore(ctx context.Context, states *state.State, scores state.PodScoreList) *state.Status
NormalizeScore invoked after scoring all pods.
func (*LowestOrdinalPriority) Score ¶
func (pl *LowestOrdinalPriority) Score(ctx context.Context, args interface{}, states *state.State, feasiblePods []int32, key types.NamespacedName, podID int32) (uint64, *state.Status)
Score invoked at the score extension point. The "score" returned in this function is higher for pods with lower ordinal values.
func (*LowestOrdinalPriority) ScoreExtensions ¶
func (pl *LowestOrdinalPriority) ScoreExtensions() state.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.