This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-kubernetes-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 573a647 [SPARK-54932] Use `(pi|pi-with-driver-timeout).yaml` to show
`ttlAfterStopMillis` example
573a647 is described below
commit 573a647137fced3718f3a8d3451a8da64fabbabf
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Jan 7 14:53:17 2026 +0900
[SPARK-54932] Use `(pi|pi-with-driver-timeout).yaml` to show
`ttlAfterStopMillis` example
### What changes were proposed in this pull request?
This PR aims to use `pi.yaml` and `pi-with-driver-timeout.yaml` to show
`ttlAfterStopMillis` example.
### Why are the changes needed?
These examples are used frequently by the users for testing purposes. By
using `ttlAfterStopMillis`, we can help users in two ways.
- Be aware of this configuration.
- By cleaning up these resources by K8s Operator, the users can submit the
same examples easily and repeatedly (after the timeout). Usually, it could be
the next manual tests.
### Does this PR introduce _any_ user-facing change?
No behavior change because this is a change on examples.
### How was this patch tested?
Manual review.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #449 from dongjoon-hyun/SPARK-54932.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
examples/pi-with-driver-timeout.yaml | 1 +
examples/pi.yaml | 1 +
2 files changed, 2 insertions(+)
diff --git a/examples/pi-with-driver-timeout.yaml
b/examples/pi-with-driver-timeout.yaml
index e3d2155..6157a5c 100644
--- a/examples/pi-with-driver-timeout.yaml
+++ b/examples/pi-with-driver-timeout.yaml
@@ -30,5 +30,6 @@ spec:
spark.kubernetes.container.image: "apache/spark:{{SPARK_VERSION}}-scala"
applicationTolerations:
resourceRetainPolicy: OnFailure
+ ttlAfterStopMillis: 10000
runtimeVersions:
sparkVersion: "4.1.0"
diff --git a/examples/pi.yaml b/examples/pi.yaml
index a4cc7cc..3ff038b 100644
--- a/examples/pi.yaml
+++ b/examples/pi.yaml
@@ -28,5 +28,6 @@ spec:
spark.kubernetes.driver.pod.excludedFeatureSteps:
"org.apache.spark.deploy.k8s.features.KerberosConfDriverFeatureStep"
applicationTolerations:
resourceRetainPolicy: OnFailure
+ ttlAfterStopMillis: 10000
runtimeVersions:
sparkVersion: "4.1.0"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]