clusteraffinity

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrReason for node affinity/selector not matching.
	ErrReason = "cluster(s) didn't match cluster selector"
)

Variables

This section is empty.

Functions

func NewClusterAffinity

func NewClusterAffinity(_ framework.Handle) (framework.Plugin, error)

Types

type ClusterAffinity

type ClusterAffinity struct{}

func (*ClusterAffinity) Filter

Filter invoked at the filter extension point.

func (*ClusterAffinity) Name

func (pl *ClusterAffinity) Name() string

func (*ClusterAffinity) NormalizeScore

func (pl *ClusterAffinity) NormalizeScore(ctx context.Context, scores framework.ClusterScoreList) *framework.Result

NormalizeScore invoked after scoring all nodes.

func (*ClusterAffinity) Score

func (*ClusterAffinity) ScoreExtensions

func (pl *ClusterAffinity) ScoreExtensions() framework.ScoreExtensions

Jump to

Keyboard shortcuts

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