Skip to content

[SPARK-58333][K8S] Add Java-friendly constructor to KubernetesDriverConf#57511

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-58333
Closed

[SPARK-58333][K8S] Add Java-friendly constructor to KubernetesDriverConf#57511
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-58333

Conversation

@dongjoon-hyun

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR aims to add a Java-friendly constructor to KubernetesDriverConf that accepts a nullable String for proxyUser instead of Option[String].

Why are the changes needed?

KubernetesDriverConf is a DeveloperApi used by Apache Spark K8s Operator. Since the operator's SparkAppDriverConf (Java) extends this class, it must call the constructor directly via super(...), which currently requires Scala interop like scala.Option.apply(...) and passing null for the clock default argument.

Does this PR introduce any user-facing change?

No behavior change. This only adds a new constructor overload to a DeveloperApi class.

How was this patch tested?

Pass the CIs with a newly added test case in KubernetesConfSuite.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Fable 5

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Could you review this K8s PR when you have some time, @sunchao ?

@sunchao sunchao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you for helping this, @sunchao ~

dongjoon-hyun added a commit that referenced this pull request Jul 24, 2026
…Conf`

### What changes were proposed in this pull request?

This PR aims to add a Java-friendly constructor to `KubernetesDriverConf` that accepts a nullable `String` for `proxyUser` instead of `Option[String]`.

### Why are the changes needed?

`KubernetesDriverConf` is a `DeveloperApi` used by Apache Spark K8s Operator. Since the operator's `SparkAppDriverConf` (Java) extends this class, it must call the constructor directly via `super(...)`, which currently requires Scala interop like `scala.Option.apply(...)` and passing `null` for the `clock` default argument.

### Does this PR introduce _any_ user-facing change?

No behavior change. This only adds a new constructor overload to a `DeveloperApi` class.

### How was this patch tested?

Pass the CIs with a newly added test case in `KubernetesConfSuite`.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Fable 5

Closes #57511 from dongjoon-hyun/SPARK-58333.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 639814a)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Merge Summary:

Posted by merge_spark_pr.py

@dongjoon-hyun
dongjoon-hyun deleted the SPARK-58333 branch July 24, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants