Skip to content

Commit

Permalink
[K8S][MINOR] Log minikube version when running integration tests.
Browse files Browse the repository at this point in the history
Closes #23893 from vanzin/minikube-version.

Authored-by: Marcelo Vanzin <vanzin@cloudera.com>
Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>
  • Loading branch information
Marcelo Vanzin committed Mar 1, 2019
1 parent 86b25c4 commit 9f16af6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ private[spark] object Minikube extends Logging {
private val MINIKUBE_PREFIX = "minikube: "
private val MINIKUBE_PATH = ".minikube"

def logVersion(): Unit = {
logInfo(executeMinikube("version").mkString("\n"))
}

def getMinikubeIp: String = {
val outputs = executeMinikube("ip")
.filter(_.matches("^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ private[spark] object MinikubeTestBackend extends IntegrationTestBackend {
private var defaultClient: DefaultKubernetesClient = _

override def initialize(): Unit = {
Minikube.logVersion()
val minikubeStatus = Minikube.getMinikubeStatus
require(minikubeStatus == MinikubeStatus.RUNNING,
s"Minikube must be running to use the Minikube backend for integration tests." +
Expand Down

0 comments on commit 9f16af6

Please sign in to comment.