removewithavailabilityzonepriority

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrReasonInvalidArg = "invalid arguments"
	ErrReasonNoResource = "zone does not exist"
)

Name of the plugin

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoveWithAvailabilityZonePriority

type RemoveWithAvailabilityZonePriority struct {
}

RemoveWithAvailabilityZonePriority is a score plugin that favors pods that create an even spread of resources across zones for HA

func (*RemoveWithAvailabilityZonePriority) Name

Name returns name of the plugin

func (*RemoveWithAvailabilityZonePriority) NormalizeScore

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

NormalizeScore invoked after scoring all pods.

func (*RemoveWithAvailabilityZonePriority) Score

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

func (*RemoveWithAvailabilityZonePriority) ScoreExtensions

ScoreExtensions of the Score plugin.

Jump to

Keyboard shortcuts

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