Documentation ¶
Index ¶
- func GetPriorityFromPriorityClass(ctx context.Context, client client.Client, priorityClass string) (string, string, int32, error)
- func GetPriorityFromWorkloadPriorityClass(ctx context.Context, client client.Client, workloadPriorityClass string) (string, string, int32, error)
- func Priority(w *kueue.Workload) int32
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.