package tainttoleration
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/tainttoleration"
Index ¶
- Constants
- func New(_ runtime.Object, h framework.Handle) (framework.Plugin, error)
- type TaintToleration
- func (f *TaintToleration) EventsToRegister() []framework.ClusterEvent
- func (pl *TaintToleration) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *framework.NodeInfo) *framework.Status
- func (pl *TaintToleration) Name() string
- func (pl *TaintToleration) NormalizeScore(ctx context.Context, _ *framework.CycleState, pod *v1.Pod, scores framework.NodeScoreList) *framework.Status
- func (pl *TaintToleration) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*v1.Node) *framework.Status
- func (pl *TaintToleration) Score(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) (int64, *framework.Status)
- func (pl *TaintToleration) ScoreExtensions() framework.ScoreExtensions
Constants ¶
const ( // Name is the name of the plugin used in the plugin registry and configurations. Name = names.TaintToleration // ErrReasonNotMatch is the Filter reason status when not matching. ErrReasonNotMatch = "node(s) had taints that the pod didn't tolerate" )
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) EventsToRegister ¶
func (f *TaintToleration) EventsToRegister() []framework.ClusterEvent
EventsToRegister returns the possible events that may make a Pod failed by this plugin schedulable.
func (*TaintToleration) Filter ¶
func (pl *TaintToleration) Filter(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeInfo *framework.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) PreScore ¶
func (pl *TaintToleration) PreScore(ctx context.Context, cycleState *framework.CycleState, pod *v1.Pod, nodes []*v1.Node) *framework.Status
PreScore builds and writes cycle state used by Score and NormalizeScore.
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.
Source Files ¶
taint_toleration.go
- Version
- v1.22.9
- Published
- Apr 13, 2022
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 1 hour ago –
Tools for package owners.