Skip to content

Commit 8ab866b

Browse files
committed
[SPARK-26015][K8S] Fix up changes to align with master changes
1 parent 72fb30c commit 8ab866b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bin/docker-image-tool.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,6 @@ function build {
132132
SPARK_ROOT="$CTX_DIR/base"
133133
fi
134134

135-
# If a custom SPARK_UID was set add it to build arguments
136-
if [ -n "$SPARK_UID" ]; then
137-
BUILD_ARGS+=(--build-arg spark_uid=$SPARK_UID)
138-
fi
139-
140135
# Verify that the Docker image content directory is present
141136
if [ ! -d "$SPARK_ROOT/kubernetes/dockerfiles" ]; then
142137
error "Cannot find docker image. This script must be run from a runnable distribution of Apache Spark."
@@ -151,6 +146,12 @@ function build {
151146
fi
152147

153148
local BUILD_ARGS=(${BUILD_PARAMS})
149+
150+
# If a custom SPARK_UID was set add it to build arguments
151+
if [ -n "$SPARK_UID" ]; then
152+
BUILD_ARGS+=(--build-arg spark_uid=$SPARK_UID)
153+
fi
154+
154155
local BINDING_BUILD_ARGS=(
155156
${BUILD_PARAMS}
156157
--build-arg

0 commit comments

Comments
 (0)