Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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