Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 7959fc5

Browse files
committed
Fix indentation
1 parent e44d81a commit 7959fc5

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

docs/running-on-kubernetes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ the `default` service account used by the driver may not have appropriate pod `e
114114
for launching executor pods. We recommend to add another service account, say `spark`, with
115115
the necessary privilege. For example:
116116

117-
kubectl create serviceaccount spark
118-
kubectl create clusterrolebinding spark-edit --clusterrole edit \
119-
--serviceaccount default:spark --namespace default
117+
kubectl create serviceaccount spark
118+
kubectl create clusterrolebinding spark-edit --clusterrole edit \
119+
--serviceaccount default:spark --namespace default
120120

121121
With this, one can add `--conf spark.kubernetes.authenticate.driver.serviceAccountName=spark` to
122122
the spark-submit command line above to specify the service account to use.

resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/kubernetes/submit/submitsteps/DriverKubernetesCredentialsStep.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,12 @@ private[spark] class DriverKubernetesCredentialsStep(
8383
.endSpec()
8484
.build()
8585
}.getOrElse(
86-
driverServiceAccount.map {
87-
account =>
86+
driverServiceAccount.map { account =>
8887
new PodBuilder(driverSpec.driverPod)
8988
.editOrNewSpec()
90-
.withServiceAccount(account)
91-
.withServiceAccountName(account)
92-
.endSpec()
89+
.withServiceAccount(account)
90+
.withServiceAccountName(account)
91+
.endSpec()
9392
.build()
9493
}.getOrElse(driverSpec.driverPod)
9594
)

0 commit comments

Comments
 (0)