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

package imagelocality

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

Index

Package Files

image_locality.go

Constants

const Name = "ImageLocality"

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

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

ImageLocality is a score plugin that favors nodes that already have requested pod container's images.

func (*ImageLocality) Name Uses

func (pl *ImageLocality) Name() string

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

func (*ImageLocality) Score Uses

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

Score invoked at the score extension point.

func (*ImageLocality) ScoreExtensions Uses

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

ScoreExtensions of the Score plugin.

Package imagelocality imports 7 packages (graph) and is imported by 1 packages. Updated 2019-11-21. Refresh now. Tools for package owners.