dongjoon-hyun opened a new pull request, #708: URL: https://github.com/apache/spark-kubernetes-operator/pull/708
### What changes were proposed in this pull request? This PR applies the `spark.kubernetes.executor.deleteOnTermination=false` override from SPARK-55352 only when the application does not restart, i.e. `RestartPolicy` is `Never` or unset, in addition to the existing static-allocation condition. ### Why are the changes needed? When `RestartPolicy=Always` (e.g. `examples/spark-history-server.yaml`), the driver pod can be recreated while old executor pods linger, so they accumulate instead of being garbage collected. Such applications must delete executors on termination explicitly. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs with the updated `useGarbageCollectionToDeleteExecutors` unit test. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 4.8) -- 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]
