dongjoon-hyun opened a new pull request, #55501: URL: https://github.com/apache/spark/pull/55501
### What changes were proposed in this pull request? This PR adds Java-friendly APIs for `driverPreKubernetesResources` and `driverKubernetesResources` fields in `KubernetesDriverSpec`. - `getDriverPreKubernetesResourcesAsJavaList`: returns `driverPreKubernetesResources` as `java.util.List[HasMetadata]`. - `getDriverKubernetesResourcesAsJavaList`: returns `driverKubernetesResources` as `java.util.List[HasMetadata]`. ### Why are the changes needed? `KubernetesDriverSpec` is a `@DeveloperApi` that is also intended for use by the Spark K8s operator. While `systemProperties` already exposes a Java-friendly accessor (`getSystemPropertiesAsJavaMap`), the `Seq[HasMetadata]` fields require Java callers to perform Scala-to-Java conversions manually. Providing symmetric Java-friendly accessors makes the API consistent and convenient for Java consumers. ### Does this PR introduce _any_ user-facing change? No. This only adds new accessor methods to an `@Unstable` `@DeveloperApi`. ### How was this patch tested? Pass the CIs with newly updated test cases. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code -- 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]
