removewithhighestordinalpriority

package
v0.43.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

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

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

ScoreExtensions of the Score plugin.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL