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

package imagelocality

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

Index

Constants

const Name = names.ImageLocality

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

Functions

func New

New initializes a new plugin and returns it.

Types

type ImageLocality

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

func (pl *ImageLocality) Name() string

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

func (*ImageLocality) Score

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

Score invoked at the score extension point.

func (*ImageLocality) ScoreExtensions

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

ScoreExtensions of the Score plugin.

Source Files

image_locality.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
5 hours ago

Tools for package owners.