dongjoon-hyun opened a new pull request, #837: URL: https://github.com/apache/spark-kubernetes-operator/pull/837
### What changes were proposed in this pull request? This PR aims to delete the Kueue `Workload` when `AppCleanUpStep` releases the resources of a `SparkApplication` with the `kueue.x-k8s.io/queue-name` label. This applies to on-demand clean-up, stopping apps (including before a restart), and terminated apps whose retention period has expired. Apps that keep their resources via `resourceRetainPolicy` keep their quota until the resources are released. ### Why are the changes needed? This is part of the Kueue runtime integration. Once labeled apps wait for admission, a `Workload` left `Admitted` after the app finishes holds the `ClusterQueue` quota indefinitely by default (`ttlAfterStopMillis=-1`). This blocks other jobs in the same `LocalQueue`. - Deleting the `Workload` returns the quota and needs no `workloads/status` permission. A restarted attempt is queued again with a new `Workload`, so the quota is not held during the restart backoff. - Failures are only logged as warnings, and a missing `Workload` or Kueue CRD is a no-op. So clean-up is never blocked, and `ownerReference` GC still removes the `Workload` eventually. - This should land before the admission PR so that `main` never leaks quota. ### Does this PR introduce _any_ user-facing change? No, the operator does not create Kueue Workloads yet. ### How was this patch tested? Pass the CIs with the newly added test cases and the updated existing test cases in `AppCleanUpStepTest`. ### 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]
