tainttoleration

package
v1.17.16 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

View Source
const Name = "TaintToleration"

Name is the name of the plugin used in the plugin registry and configurations.

Variables

This section is empty.

Functions

func New

New initializes a new plugin and returns it.

Types

type TaintToleration

type TaintToleration struct {
	// contains filtered or unexported fields
}

TaintToleration is a plugin that checks if a pod tolerates a node's taints.

func (*TaintToleration) Filter

func (pl *TaintToleration) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *nodeinfo.NodeInfo) *framework.Status

Filter invoked at the filter extension point.

func (*TaintToleration) Name

func (pl *TaintToleration) Name() string

Name returns name of the plugin. It is used in logs, etc.

func (*TaintToleration) NormalizeScore

func (pl *TaintToleration) NormalizeScore(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status

NormalizeScore invoked after scoring all nodes.

func (*TaintToleration) Score

func (pl *TaintToleration) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)

Score invoked at the Score extension point.

func (*TaintToleration) ScoreExtensions

func (pl *TaintToleration) 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