Documentation ¶
Index ¶
- Constants
- type RemoveWithEvenPodSpreadPriority
- func (pl *RemoveWithEvenPodSpreadPriority) Name() string
- func (pl *RemoveWithEvenPodSpreadPriority) NormalizeScore(ctx context.Context, states *state.State, scores state.PodScoreList) *state.Status
- func (pl *RemoveWithEvenPodSpreadPriority) Score(ctx context.Context, args interface{}, states *state.State, ...) (uint64, *state.Status)
- func (pl *RemoveWithEvenPodSpreadPriority) ScoreExtensions() state.ScoreExtensions
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 ¶
func (pl *RemoveWithEvenPodSpreadPriority) Name() string
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 ¶
func (pl *RemoveWithEvenPodSpreadPriority) ScoreExtensions() state.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.