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

package interpodaffinity

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

Index

Package Files

interpod_affinity.go

Constants

const Name = "InterPodAffinity"

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 InterPodAffinity Uses

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

InterPodAffinity is a plugin that checks inter pod affinity

func (*InterPodAffinity) Filter Uses

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

Filter invoked at the filter extension point.

func (*InterPodAffinity) Name Uses

func (pl *InterPodAffinity) Name() string

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

func (*InterPodAffinity) NormalizeScore Uses

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

NormalizeScore invoked after scoring all nodes.

func (*InterPodAffinity) Score Uses

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

Score invoked at the Score extension point. The "score" returned in this function is the matching number of pods on the `nodeName`, it is normalized later.

func (*InterPodAffinity) ScoreExtensions Uses

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

ScoreExtensions of the Score plugin.

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