dongjoon-hyun opened a new pull request, #869: URL: https://github.com/apache/spark-kubernetes-operator/pull/869
### What changes were proposed in this pull request? This PR aims to make `AppCleanUpStep` terminate an application as `ResourceReleased` instead of `TerminatedWithoutReleaseResources` when its resources are force released because it is configured to restart. ### Why are the changes needed? With `resourceRetainPolicy` `Always` (or `OnFailure` on failure) and a restart policy other than `Never`, the resources are always released, as documented in `docs/architecture.md`. However, when no more attempt is made (e.g. the restart limit is exceeded), the final state is still `TerminatedWithoutReleaseResources`. This state is misleading and delays the retain duration and TTL handling. ### Does this PR introduce _any_ user-facing change? Yes. Such applications now end in `ResourceReleased`, which matches the actual state of their resources. ### How was this patch tested? Pass the CIs with the newly added test case. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5.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]
