jiangzho opened a new pull request, #405: URL: https://github.com/apache/spark-kubernetes-operator/pull/405
### What changes were proposed in this pull request? This PR adds support for automatic restart counter reset based on application attempt duration. The feature introduces a new `restartCounterResetMillis` field in RestartConfig that allows the restart counter to be reset if an application runs successfully for a specified duration before terminating. Also added unit test and enhanced existing test `assertGeneratedCRDMatchesHelmChart` to give diff fore readability. ### Why are the changes needed? With this feature, users can distinguish between persistent failures (quick consecutive crashes) and applications that run for long periods between failures. ### Does this PR introduce _any_ user-facing change? A new optional configuration field restartCounterResetMillis added to the RestartConfig spec. ### How was this patch tested? Added unit test that validates restart counter works as expected. ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
