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 2366928 [SPARK-53780] `spark-submission-worker` should depend on
`io.fabric8` directly
2366928 is described below
commit 2366928e114e663d77ef0c890b59fab72a26ebc1
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Oct 1 17:14:15 2025 -0700
[SPARK-53780] `spark-submission-worker` should depend on `io.fabric8`
directly
### What changes were proposed in this pull request?
This PR aims to make `spark-submission-worker` depend on `io.fabric8`
directly like `spark-operator-api` module.
### Why are the changes needed?
Currently, `spark-submission-worker` are using the transitive dependency
from `spark-kubernetes` module when it uses `io.fabric8` library. This is
inconsistent and a wrong use case.
**BEFORE**
```
$ gradle :spark-submission-worker:dependencies --configuration
compileClasspath
...
+--- org.projectlombok:lombok:1.18.42
+--- project :spark-operator-api
\--- org.apache.spark:spark-kubernetes_2.13:4.0.1
+--- org.apache.spark:spark-core_2.13:4.0.1
| ...
+--- io.fabric8:kubernetes-client:7.1.0
```
**AFTER**
```
$ gradle :spark-submission-worker:dependencies --configuration
compileClasspath
...
+--- org.projectlombok:lombok:1.18.42
+--- project :spark-operator-api
+--- io.fabric8:kubernetes-client:7.4.0
```
### Does this PR introduce _any_ user-facing change?
No behavior change.
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #360 from dongjoon-hyun/SPARK-53780.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
spark-submission-worker/build.gradle | 2 ++
1 file changed, 2 insertions(+)
diff --git a/spark-submission-worker/build.gradle
b/spark-submission-worker/build.gradle
index f166450..fa9bd60 100644
--- a/spark-submission-worker/build.gradle
+++ b/spark-submission-worker/build.gradle
@@ -18,8 +18,10 @@
*/
dependencies {
implementation project(":spark-operator-api")
+ implementation(libs.kubernetes.client)
implementation(libs.spark.kubernetes) {
+ exclude group: "io.fabric8"
exclude group: "com.github.luben"
exclude group: "io.netty", module: "netty-tcnative-boringssl-static"
exclude group: "io.netty", module: "netty-tcnative-classes"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]