From 4f0cd792b123a093afab41ed0e6bda624ab7383a Mon Sep 17 00:00:00 2001 From: Zhou JIANG Date: Fri, 11 Jul 2025 13:57:43 -0700 Subject: [PATCH] [SPARK-52774] Fix resource retain policy typo in docs ### What changes were proposed in this pull request? This fixes typo in docs regarding resourceRetainPolicy ### Why are the changes needed? For docs sanity ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? pass CIs ### Was this patch authored or co-authored using generative AI tooling? No --- docs/spark_custom_resources.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/spark_custom_resources.md b/docs/spark_custom_resources.md index 7bf344f6..5378c640 100644 --- a/docs/spark_custom_resources.md +++ b/docs/spark_custom_resources.md @@ -289,11 +289,11 @@ On the other hand, when developing an application, it's possible to configure ```yaml applicationTolerations: # Acceptable values are 'Always', 'OnFailure', 'Never' - resourceRetentionPolicy: OnFailure + resourceRetainPolicy: OnFailure ``` to avoid operator attempt to delete driver pod and driver resources if app fails. Similarly, -if resourceRetentionPolicy is set to `Always`, operator would not delete driver resources +if resourceRetainPolicy is set to `Always`, operator would not delete driver resources when app ends. Note that this applies only to operator-created resources (driver pod, SparkConf configmap .etc). You may also want to tune `spark.kubernetes.driver.service.deleteOnTermination` and `spark.kubernetes.executor.deleteOnTermination` to control the behavior of driver-created