Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Fixed build error
Browse files Browse the repository at this point in the history
  • Loading branch information
yuchaoran2011 committed Jul 13, 2020
1 parent cc3a87c commit 13caccb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
*/
package org.apache.spark.deploy.k8s

import io.fabric8.kubernetes.api.model.{Pod, PodBuilder}

import org.apache.spark.SparkConf
import org.apache.spark.util.Utils

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
*/
package org.apache.spark.deploy.k8s.features

import io.fabric8.kubernetes.api.model.HasMetadata

import org.apache.spark.deploy.k8s.{KubernetesConf, SparkPod}
import org.apache.spark.deploy.k8s.Config.KUBERNETES_SERVICE_ACCOUNT_NAME
import org.apache.spark.deploy.k8s.KubernetesUtils.buildPodWithServiceAccount

private[spark] class ExecutorKubernetesCredentialsFeatureStep(kubernetesConf: KubernetesConf)
private[spark] class ExecutorKubernetesCredentialsFeatureStep(kubernetesConf: KubernetesConf[_])
extends KubernetesFeatureConfigStep {
private lazy val driverServiceAccount = kubernetesConf.get(KUBERNETES_SERVICE_ACCOUNT_NAME)

Expand All @@ -34,4 +36,12 @@ private[spark] class ExecutorKubernetesCredentialsFeatureStep(kubernetesConf: Ku
pod.pod
})
}
}

override def getAdditionalKubernetesResources(): Seq[HasMetadata] = {
Seq.empty
}

override def getAdditionalPodSystemProperties(): Map[String, String] = {
Map.empty
}
}

0 comments on commit 13caccb

Please sign in to comment.