removewithevenpodspreadpriority

package
Version: v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name                   = state.RemoveWithEvenPodSpreadPriority
	ErrReasonInvalidArg    = "invalid arguments"
	ErrReasonUnschedulable = "pod will cause an uneven spread"
)

Name of the plugin

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoveWithEvenPodSpreadPriority

type RemoveWithEvenPodSpreadPriority struct {
}

RemoveWithEvenPodSpreadPriority is a filter plugin that eliminates pods that do not create an equal spread of resources across pods

func (*RemoveWithEvenPodSpreadPriority) Name

Name returns name of the plugin

func (*RemoveWithEvenPodSpreadPriority) NormalizeScore

func (pl *RemoveWithEvenPodSpreadPriority) NormalizeScore(ctx context.Context, states *state.State, scores state.PodScoreList) *state.Status

NormalizeScore invoked after scoring all pods.

func (*RemoveWithEvenPodSpreadPriority) Score

func (pl *RemoveWithEvenPodSpreadPriority) 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 that create an even spread across pods.

func (*RemoveWithEvenPodSpreadPriority) ScoreExtensions

ScoreExtensions of the Score plugin.

Jump to

Keyboard shortcuts

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