devstack-heat: Do not clone the entire kuryr-k8s

If no github token is used, we resort to cloning. The more patches kuryr
has, the longer it takes. That is, unless we limit the cloning depth,
then it will only be the size of the latest snapshot.

Change-Id: I765be71937f1bf20b99c503a4193ed3de4e71ef2
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
This commit is contained in:
Antoni Segura Puimedon 2018-03-08 00:34:55 +01:00
parent 53efb7493d
commit c2b81a2adf
No known key found for this signature in database
GPG Key ID: 9B08FFD846853B9D
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ function _generate_deployment_name() {
set -e
(>&2 echo "Didn't find a Github token in ENV var DEVSTACK_HEAT_GH_TOKEN. Falling back to cloning repo...")
tmpdir=$(mktemp -d)
git clone https://git.openstack.org/openstack/kuryr-kubernetes "${tmpdir}/kuryr-kubernetes" > /dev/null
git clone --depth 1 https://git.openstack.org/openstack/kuryr-kubernetes "${tmpdir}/kuryr-kubernetes" > /dev/null
pushd "${tmpdir}/kuryr-kubernetes" > /dev/null
latest_commit=$(git rev-parse HEAD)
popd > /dev/null