kubernetes: k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeaffinity Index | Files

package nodeaffinity

import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/nodeaffinity"

Index

Package Files

node_affinity.go

Constants

const Name = "NodeAffinity"

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

func New Uses

func New(_ *runtime.Unknown, h framework.FrameworkHandle) (framework.Plugin, error)

New initializes a new plugin and returns it.

type NodeAffinity Uses

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

NodeAffinity is a plugin that checks if a pod node selector matches the node label.

func (*NodeAffinity) Filter Uses

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

Filter invoked at the filter extension point.

func (*NodeAffinity) Name Uses

func (pl *NodeAffinity) Name() string

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

func (*NodeAffinity) NormalizeScore Uses

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

NormalizeScore invoked after scoring all nodes.

func (*NodeAffinity) Score Uses

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

Score invoked at the Score extension point.

func (*NodeAffinity) ScoreExtensions Uses

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

ScoreExtensions of the Score plugin.

Package nodeaffinity imports 9 packages (graph) and is imported by 1 packages. Updated 2019-11-13. Refresh now. Tools for package owners.