Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Clean up
  • Loading branch information
kimoonkim committed Dec 16, 2017
commit 86245457c5b759f57c395317105bb1bcd4b4919c
Original file line number Diff line number Diff line change
Expand Up @@ -127,49 +127,6 @@ private[spark] class KubernetesSuite extends FunSuite with BeforeAndAfterAll wit
}
}
}

private def createShuffleServiceDaemonSet(): Unit = {
val ds = kubernetesTestComponents.kubernetesClient.extensions().daemonSets()
.createNew()
.withNewMetadata()
.withName("shuffle")
.endMetadata()
.withNewSpec()
.withNewTemplate()
.withNewMetadata()
.withLabels(Map("app" -> "spark-shuffle-service").asJava)
.endMetadata()
.withNewSpec()
.addNewVolume()
.withName("shuffle-dir")
.withNewHostPath()
.withPath("/tmp")
.endHostPath()
.endVolume()
.addNewContainer()
.withName("shuffle")
.withImage("spark-shuffle:latest")
.withImagePullPolicy("IfNotPresent")
.addNewVolumeMount()
.withName("shuffle-dir")
.withMountPath("/tmp")
.endVolumeMount()
.endContainer()
.endSpec()
.endTemplate()
.endSpec()
.done()

// wait for daemonset to become available.
Eventually.eventually(TIMEOUT, INTERVAL) {
val pods = kubernetesTestComponents.kubernetesClient.pods()
.withLabel("app", "spark-shuffle-service").list().getItems

if (pods.size() == 0 || !Readiness.isReady(pods.get(0))) {
throw ShuffleNotReadyException
}
}
}
}

private[spark] object KubernetesSuite {
Expand Down