Skip to content

Commit

Permalink
[SPARK-44995][K8S] Promote SparkKubernetesClientFactory to DeveloperApi
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Aug 28, 2023
1 parent 8e779d1 commit d1e13b4
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,28 @@ import okhttp3.Dispatcher
import okhttp3.OkHttpClient

import org.apache.spark.SparkConf
import org.apache.spark.annotation.{DeveloperApi, Since, Stable}
import org.apache.spark.deploy.k8s.Config._
import org.apache.spark.internal.Logging
import org.apache.spark.internal.config.ConfigEntry
import org.apache.spark.util.ThreadUtils

/**
* :: DeveloperApi ::
*
* Spark-opinionated builder for Kubernetes clients. It uses a prefix plus common suffixes to
* parse configuration keys, similar to the manner in which Spark's SecurityManager parses SSL
* options for different components.
*
* This can be used to implement new ExternalClusterManagers.
*
* @since 4.0.0
*/
private[spark] object SparkKubernetesClientFactory extends Logging {
@Stable
@DeveloperApi
object SparkKubernetesClientFactory extends Logging {

@Since("4.0.0")
def createKubernetesClient(
master: String,
namespace: Option[String],
Expand Down

0 comments on commit d1e13b4

Please sign in to comment.