Skip to main content

kubernetes_priority_class_name

Function kubernetes_priority_class_name 

Source
pub fn kubernetes_priority_class_name(
    priority: Option<WorkloadPriority>,
) -> Result<Option<String>, String>
Expand description

Map a workload’s priority level to the PriorityClass the cluster administrator chose for it.

Returns None when the workload declares no level or the administrator mapped none, so pod specs stay exactly as they were. The map comes from the Operator’s ALIEN_KUBERNETES_PRIORITY_CLASSES environment variable, which the Helm chart sets only when runtime.workloadPriority.classes has an entry.