You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2026/04/24 18:36:04 UTC

(spark) branch master updated: [SPARK-56624][K8S] Promote `KubernetesUtils` to `Stable`

This is an automated email from the ASF dual-hosted git repository.

dongjoon-hyun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new c241d5ad4a23 [SPARK-56624][K8S] Promote `KubernetesUtils` to `Stable`
c241d5ad4a23 is described below

commit c241d5ad4a2372bbddc7dd8339987a09f501dc36
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Fri Apr 24 11:35:54 2026 -0700

    [SPARK-56624][K8S] Promote `KubernetesUtils` to `Stable`
    
    ### What changes were proposed in this pull request?
    
    This PR aims to promote `KubernetesUtils` to `Stable` from Apache Spark 4.2.0.
    
    ### Why are the changes needed?
    
    - Apache Spark 2.3.0 introduced `KubernetesUtils`.
      - https://github.com/apache/spark/pull/20160
    - Apache Spark 3.2.0 promoted it to the Developer API.
      - https://github.com/apache/spark/pull/32406
    - Since then, it has been serving stably as a `DeveloperApi` utility class used for K8s operations internally and for implementing `ExternalClusterManager`s. We had better promote it to `Stable` from Apache Spark 4.2.0.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the CIs.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: Claude Opus 4.7
    
    Closes #55544 from dongjoon-hyun/SPARK-56624.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 .../src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala b/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala
index 3f39b3ffa06a..4e44c204cb55 100644
--- a/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala
+++ b/resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/KubernetesUtils.scala
@@ -28,7 +28,7 @@ import io.fabric8.kubernetes.client.KubernetesClient
 import org.apache.hadoop.fs.Path
 
 import org.apache.spark.{SparkConf, SparkException}
-import org.apache.spark.annotation.{DeveloperApi, Since, Unstable}
+import org.apache.spark.annotation.{DeveloperApi, Since, Stable}
 import org.apache.spark.deploy.SparkHadoopUtil
 import org.apache.spark.deploy.k8s.Config.KUBERNETES_FILE_UPLOAD_PATH
 import org.apache.spark.internal.Logging
@@ -44,8 +44,9 @@ import org.apache.spark.util.Utils.{getHadoopFileSystem, uploadFileToHadoopCompa
  *
  * A utility class used for K8s operations internally and for implementing ExternalClusterManagers.
  */
-@Unstable
+@Stable
 @DeveloperApi
+@Since("2.3.0")
 object KubernetesUtils extends Logging {
 
   private val systemClock = new SystemClock()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org