package queuesort
import "k8s.io/kubernetes/pkg/scheduler/framework/plugins/queuesort"
Index ¶
- Constants
- func New(_ context.Context, _ runtime.Object, handle framework.Handle) (framework.Plugin, error)
- type PrioritySort
Constants ¶
const Name = names.PrioritySort
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 PrioritySort ¶
type PrioritySort struct{}
PrioritySort is a plugin that implements Priority based sorting.
func (*PrioritySort) Less ¶
func (pl *PrioritySort) Less(pInfo1, pInfo2 fwk.QueuedPodInfo) bool
Less is the function used by the activeQ heap algorithm to sort pods. It sorts pods based on their priority. When priorities are equal, it uses PodQueueInfo.timestamp.
func (*PrioritySort) Name ¶
func (pl *PrioritySort) Name() string
Name returns name of the plugin.
Source Files ¶
priority_sort.go
- Version
- v1.34.0-rc.0
- Published
- Aug 6, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 2 minutes ago –
Tools for package owners.