priority

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPriorityFromPriorityClass

func GetPriorityFromPriorityClass(ctx context.Context, client client.Client,
	priorityClass string) (string, string, int32, error)

GetPriorityFromPriorityClass returns the priority populated from priority class. If not specified, priority will be default or zero if there is no default.

func GetPriorityFromWorkloadPriorityClass added in v0.5.0

func GetPriorityFromWorkloadPriorityClass(ctx context.Context, client client.Client,
	workloadPriorityClass string) (string, string, int32, error)

GetPriorityFromWorkloadPriorityClass returns the priority populated from workload priority class. If not specified, returns 0. DefaultPriority is not called within this function because k8s priority class should be checked next.

func Priority

func Priority(w *kueue.Workload) int32

Priority returns priority of the given workload.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL