Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The maximum priority value that the plugin returns MaxPriority = 100 // Name is the name of the plugin used in the plugin registry and configurations. Name = "RepeatPriority" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RepeatPriority ¶
type RepeatPriority struct {
// contains filtered or unexported fields
}
RepeatPriority is a score plugin that favors nodes that are allocated the least pods by the scheduler
func (*RepeatPriority) Name ¶
func (pl *RepeatPriority) Name() string
Name returns name of the plugin. It is used in logs, etc.
func (*RepeatPriority) Score ¶
func (pl *RepeatPriority) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
Score invoked at the score extension point.
func (*RepeatPriority) ScoreExtensions ¶
func (pl *RepeatPriority) ScoreExtensions() framework.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.