Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Dec 31, 2024
1 parent 3eade8b commit 343adae
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,8 @@ class SparkProcessBuilder(
}

def isK8sClusterMode: Boolean = {
clusterManager().map(_.toLowerCase(Locale.ROOT)) match {
case Some(m) if m.startsWith("k8s") =>
deployMode().exists(_.toLowerCase(Locale.ROOT) == "cluster")
case _ => false
}
clusterManager().exists(cm => cm.toLowerCase(Locale.ROOT).startsWith("k8s")) &&
deployMode().exists(_.toLowerCase(Locale.ROOT) == "cluster")
}

def kubernetesContext(): Option[String] = {
Expand Down

0 comments on commit 343adae

Please sign in to comment.