...

Package prioritysort

import "framework/plugins/prioritysort"
Overview
Index

Overview ▾

Constants

const (
    PluginName = "PrioritySort"
)

func NewPrioritySortPlugin

func NewPrioritySortPlugin(config config.PluginConfig, scheduler pipeline.PolarisScheduler) (pipeline.Plugin, error)

Creates a new PrioritySortPlugin instance.

type PrioritySortPlugin

Implements sorting of incoming pods based on their priorities and creation timestamps.

type PrioritySortPlugin struct {
}

func (*PrioritySortPlugin) Less

func (ps *PrioritySortPlugin) Less(podA *pipeline.QueuedPodInfo, podB *pipeline.QueuedPodInfo) bool

func (*PrioritySortPlugin) Name

func (*PrioritySortPlugin) Name() string