dongjoon-hyun opened a new pull request, #851:
URL: https://github.com/apache/spark-kubernetes-operator/pull/851

   ### What changes were proposed in this pull request?
   
   This PR aims to fill `spec.priorityClassRef` and `spec.priority` of Kueue 
`Workload`s. The priority is decided like Kueue's built-in integrations ([Kueue 
v0.19.4](https://github.com/kubernetes-sigs/kueue/releases/tag/v0.19.4) 
(2026-09-10)), in this order:
   
   1. The `WorkloadPriorityClass` named by the `kueue.x-k8s.io/priority-class` 
label.
   2. The `PriorityClass` of the first pod set that has one: `driver` or 
`master` first.
   3. The `globalDefault` `PriorityClass`.
   
   If the named class does not exist, the admission is retried. If the operator 
cannot read the classes (`403 Forbidden`), it creates the `Workload` without 
priority. If the label changes while the `Workload` is pending, the `Workload` 
is updated in place.
   
   ### Why are the changes needed?
   
   Kueue orders the queue and picks preemption targets by `spec.priority`, and 
the integration has to fill it. Currently, all Spark `Workload`s have the same 
priority.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No, `Kueue` feature is not released yet.
   
   ### How was this patch tested?
   
   Pass the CIs with the newly added unit tests and the new Chainsaw step in 
`tests/e2e/kueue`.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to