Retry failed release downloads
gsutil cp is prone to failure during initial creation of a Kubernetes cluster. This 'until' loop will keep trying as suggested in the 'gsutil cp' documentation.
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
# master and run.
|
# master and run.
|
||||||
|
|
||||||
echo "Downloading release ($MASTER_RELEASE_TAR)"
|
echo "Downloading release ($MASTER_RELEASE_TAR)"
|
||||||
gsutil cp $MASTER_RELEASE_TAR master-release.tgz
|
until gsutil cp $MASTER_RELEASE_TAR master-release.tgz; do sleep 1 ; echo "Retrying master download" ; done
|
||||||
|
|
||||||
|
|
||||||
echo "Unpacking release"
|
echo "Unpacking release"
|
||||||
|
Reference in New Issue
Block a user