Skip to content

Commit

Permalink
Tweaks after merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Vanzin committed Oct 31, 2018
1 parent b118b91 commit 91a4741
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ private[spark] class PodTemplateConfigMapStep(
SparkPod(podWithVolume, containerWithVolume)
}

def getAdditionalPodSystemProperties(): Map[String, String] = Map[String, String](
override def getAdditionalPodSystemProperties(): Map[String, String] = Map[String, String](
KUBERNETES_EXECUTOR_PODTEMPLATE_FILE.key ->
(EXECUTOR_POD_SPEC_TEMPLATE_MOUNTPATH + "/" + EXECUTOR_POD_SPEC_TEMPLATE_FILE_NAME))

def getAdditionalKubernetesResources(): Seq[HasMetadata] = {
override def getAdditionalKubernetesResources(): Seq[HasMetadata] = {
require(conf.get(KUBERNETES_EXECUTOR_PODTEMPLATE_FILE).isDefined)
val podTemplateFile = conf.get(KUBERNETES_EXECUTOR_PODTEMPLATE_FILE).get
val podTemplateString = Files.toString(new File(podTemplateFile), StandardCharsets.UTF_8)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class PodTemplateConfigMapStepSuite extends SparkFunSuite with BeforeAndAfter {
Map.empty,
Map.empty,
Nil,
Seq.empty[String],
Option.empty)
templateFile = Files.createTempFile("pod-template", "yml").toFile
templateFile.deleteOnExit()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,14 @@ class KubernetesDriverBuilderSuite extends SparkFunSuite {
Map.empty,
Map.empty,
Nil,
Seq.empty[String],
Option.empty)
validateStepTypesApplied(
builderUnderTest.buildFromFeatures(conf),
BASIC_STEP_TYPE,
CREDENTIALS_STEP_TYPE,
SERVICE_STEP_TYPE,
LOCAL_DIRS_STEP_TYPE,
JAVA_STEP_TYPE,
DRIVER_CMD_STEP_TYPE,
TEMPLATE_VOLUME_STEP_TYPE)
}

Expand Down Expand Up @@ -296,7 +295,6 @@ class KubernetesDriverBuilderSuite extends SparkFunSuite {
Map.empty,
Map.empty,
Nil,
Seq.empty[String],
Option.empty)
val driverSpec = KubernetesDriverBuilder
.apply(kubernetesClient, sparkConf)
Expand Down Expand Up @@ -329,7 +327,6 @@ class KubernetesDriverBuilderSuite extends SparkFunSuite {
Map.empty,
Map.empty,
Nil,
Seq.empty[String],
Option.empty)
val exception = intercept[SparkException] {
KubernetesDriverBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ class KubernetesExecutorBuilderSuite extends SparkFunSuite {
Map.empty,
Map.empty,
Nil,
Seq.empty[String],
Option.empty)
val sparkPod = KubernetesExecutorBuilder
.apply(kubernetesClient, sparkConf)
Expand Down

0 comments on commit 91a4741

Please sign in to comment.