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

   ### What changes were proposed in this pull request?
   
   This PR aims to add Kueue `ResourceFlavor` v1beta2 model classes.
   
   - `ResourceFlavor`: A Fabric8 `CustomResource` representation of a 
cluster-scoped Kueue `ResourceFlavor` (`kueue.x-k8s.io/v1beta2`).
   - `ResourceFlavorSpec`: Holds `nodeLabels` and `tolerations`, which Kueue 
injects into the pods admitted with the flavor. `nodeTaints` is not included 
because Kueue uses it only for the admission.
   
   ### Why are the changes needed?
   
   When Kueue admits a `Workload`, it records the assigned `ResourceFlavor` 
names in `status.admission.podSetAssignments[].flavors`. Kueue's built-in 
integrations inject the flavor's `spec.nodeLabels` into the pod `nodeSelector` 
and `spec.tolerations` into the pod `tolerations`.
   
   This PR prepares for follow-up PRs that inject the `nodeLabels` and 
`tolerations` of the admitted flavors into Spark pods.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This PR adds only the model classes, so the runtime behavior does not 
change.
   
   ### How was this patch tested?
   
   Pass the CIs with the newly added test suite, `ResourceFlavorTest`.
   
   ### 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