Documentation ¶
Index ¶
- Constants
- type RemoveWithHighestOrdinalPriority
- func (pl *RemoveWithHighestOrdinalPriority) Name() string
- func (pl *RemoveWithHighestOrdinalPriority) NormalizeScore(ctx context.Context, states *state.State, scores state.PodScoreList) *state.Status
- func (pl *RemoveWithHighestOrdinalPriority) Score(ctx context.Context, args interface{}, states *state.State, ...) (uint64, *state.Status)
- func (pl *RemoveWithHighestOrdinalPriority) ScoreExtensions() state.ScoreExtensions
Constants ¶
View Source
const Name = state.RemoveWithHighestOrdinalPriority
Name of the plugin
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoveWithHighestOrdinalPriority ¶
type RemoveWithHighestOrdinalPriority struct { }
RemoveWithHighestOrdinalPriority is a score plugin that favors pods that have a higher ordinal
func (*RemoveWithHighestOrdinalPriority) Name ¶
func (pl *RemoveWithHighestOrdinalPriority) Name() string
Name returns name of the plugin
func (*RemoveWithHighestOrdinalPriority) NormalizeScore ¶
func (pl *RemoveWithHighestOrdinalPriority) NormalizeScore(ctx context.Context, states *state.State, scores state.PodScoreList) *state.Status
NormalizeScore invoked after scoring all pods.
func (*RemoveWithHighestOrdinalPriority) Score ¶
func (pl *RemoveWithHighestOrdinalPriority) 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 higher ordinal values.
func (*RemoveWithHighestOrdinalPriority) ScoreExtensions ¶
func (pl *RemoveWithHighestOrdinalPriority) ScoreExtensions() state.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.