clusteraffinity

package
v1.8.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of the plugin used in the plugin registry and configurations.
	Name = "ClusterAffinity"
)

Variables

This section is empty.

Functions

func New

func New() (framework.Plugin, error)

New instantiates the clusteraffinity plugin.

Types

type ClusterAffinity

type ClusterAffinity struct{}

ClusterAffinity is a plugin that checks if a resource selector matches the cluster label.

func (*ClusterAffinity) Filter

Filter checks if the cluster matched the placement cluster affinity constraint.

func (*ClusterAffinity) Name

func (p *ClusterAffinity) Name() string

Name returns the plugin name.

func (*ClusterAffinity) NormalizeScore added in v1.2.0

NormalizeScore normalizes the score for each candidate cluster.

func (*ClusterAffinity) Score

Score calculates the score on the candidate cluster.

func (*ClusterAffinity) ScoreExtensions added in v1.2.0

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

ScoreExtensions of the Score plugin.

Jump to

Keyboard shortcuts

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