dongjoon-hyun opened a new pull request, #946: URL: https://github.com/apache/spark-kubernetes-operator/pull/946
### What changes were proposed in this pull request? This PR aims to add `ApplicationStateSummary.Suspended` and `ApplicationStatus#resume`. - Add `Suspended` to `ApplicationStateSummary`, and make `isStopping()` exclude it. Otherwise, `AppCleanUpStep` would end a suspended application. The result for the existing states is unchanged. - Add `ApplicationStatus#resume`, which starts the next attempt of a `Suspended` application from `Submitted`. Unlike a restart, it does not increase the restart counters, and it resets only `schedulingFailureRestartCounter`. - Add `Suspended` to the `SparkApplication` CRD of `spark.apache.org/v1`, and update `docs/migration_guide.md`. ### Why are the changes needed? To support `spec.suspend` for a running `SparkApplication` in a follow-up PR. Currently, it takes effect only before the driver is requested. ### Does this PR introduce _any_ user-facing change? Yes, in the API only. Unlike [1.0.0](https://github.com/apache/spark-kubernetes-operator/releases/tag/1.0.0) (2026-07-23), the `SparkApplication` CRD accepts the `Suspended` state, an exhaustive `switch` over `ApplicationStateSummary` needs a case for `Suspended`, and `ApplicationStatus` has the new public method `resume`. There is no behavior change, since nothing uses them until the follow-up PR. ### How was this patch tested? Pass the CIs with the newly added test cases. ### 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]
