tainttoleration

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func New

func New() framework.Plugin

New instantiates the TaintToleration plugin.

Types

type TaintToleration

type TaintToleration struct{}

TaintToleration is a plugin that checks if a propagation policy tolerates a cluster's taints.

func (*TaintToleration) Filter

func (p *TaintToleration) Filter(ctx context.Context, placement *v1alpha1.Placement, cluster *cluster.Cluster) *framework.Result

Filter checks if the given tolerations in placement tolerate cluster's taints.

func (*TaintToleration) Name

func (p *TaintToleration) Name() string

Name returns the plugin name.

func (*TaintToleration) Score

func (p *TaintToleration) Score(ctx context.Context, placement *v1alpha1.Placement, cluster *cluster.Cluster) (float64, *framework.Result)

Score calculates the score on the candidate cluster.

Jump to

Keyboard shortcuts

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