File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ readonly GCS_STAGE="${LOCAL_OUTPUT_ROOT}/gcs-stage"
93
93
# Get the set of master binaries that run in Docker (on Linux)
94
94
# Entry format is "<name-of-binary>,<base-image>".
95
95
# Binaries are placed in /usr/local/bin inside the image.
96
- #
96
+ #
97
97
# $1 - server architecture
98
98
kube::build::get_docker_wrapped_binaries () {
99
99
case $1 in
@@ -875,7 +875,10 @@ function kube::release::write_addon_docker_images_for_server() {
875
875
kube::log::status " Pulling and writing Docker image for addon: ${addon_path} "
876
876
877
877
local dest_name=" ${addon_path// \/ / \~ } "
878
- " ${DOCKER[@]} " pull " ${addon_path} "
878
+ if [[ -z $( " ${DOCKER[@]} " images | awk ' {print ($1":"$2)}' | grep " ${addon_path} " ) ]]; then
879
+ kube::log::status " Addon image ${addon_path} does not exist, pulling it..."
880
+ " ${DOCKER[@]} " pull " ${addon_path} "
881
+ fi
879
882
" ${DOCKER[@]} " save " ${addon_path} " > " ${1} /${dest_name} .tar"
880
883
) &
881
884
done
You can’t perform that action at this time.
0 commit comments