Documentation
¶
Index ¶
- Constants
- func New(_ context.Context, _ runtime.Object, h fwk.Handle) (fwk.Plugin, error)
- type ImageLocality
- func (pl *ImageLocality) Name() string
- func (pl *ImageLocality) Score(ctx context.Context, state fwk.CycleState, pod *v1.Pod, nodeInfo fwk.NodeInfo) (int64, *fwk.Status)
- func (pl *ImageLocality) ScoreExtensions() fwk.ScoreExtensions
- func (pl *ImageLocality) SignPod(ctx context.Context, pod *v1.Pod) ([]fwk.SignFragment, *fwk.Status)
Constants ¶
View Source
const Name = names.ImageLocality
Name is the name of the plugin used in the plugin registry and configurations.
Variables ¶
This section is empty.
Functions ¶
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 fwk.CycleState, pod *v1.Pod, nodeInfo fwk.NodeInfo) (int64, *fwk.Status)
Score invoked at the score extension point.
func (*ImageLocality) ScoreExtensions ¶
func (pl *ImageLocality) ScoreExtensions() fwk.ScoreExtensions
ScoreExtensions of the Score plugin.
Click to show internal directories.
Click to hide internal directories.