Skip to content

Commit 39d781f

Browse files
committed
Move common:set_cloud_binaries().
1 parent 7baeeae commit 39d781f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

anago

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,14 +1429,6 @@ if [[ -z "${BASEDIR}" ]]; then
14291429
fi
14301430
fi
14311431

1432-
if ! ((FLAGS_buildonly)) && ! common::set_cloud_binaries; then
1433-
logecho "Releasing Kubernetes requires gsutil and gcloud. Please download,"
1434-
logecho "install and authorize through the Google Cloud SDK:"
1435-
logecho
1436-
logecho "https://developers.google.com/cloud/sdk/"
1437-
common::exit 1 "Exiting..."
1438-
fi
1439-
14401432
# TODO:
14411433
# These KUBE_ globals extend beyond the scope of the new release refactored
14421434
# tooling so to pass these through as flags will require fixes across
@@ -1499,6 +1491,15 @@ if ! ((FLAGS_gcb)); then
14991491
common::security_layer
15001492
fi
15011493

1494+
# Set cloud binaries
1495+
if ! ((FLAGS_buildonly)) && ! common::set_cloud_binaries; then
1496+
logecho "Releasing Kubernetes requires gsutil and gcloud. Please download,"
1497+
logecho "install and authorize through the Google Cloud SDK:"
1498+
logecho
1499+
logecho "https://developers.google.com/cloud/sdk/"
1500+
common::exit 1 "Exiting..."
1501+
fi
1502+
15021503
((FLAGS_stage)) || common::run_stateful gitlib::github_acls
15031504

15041505
# Simple check to validate who can do actual releases

0 commit comments

Comments
 (0)