Replace awkward bash pipelines with gcloud's --format='value()'

Also remove old `gcloud compute instance-groups managed get-operation`
code. This command doesn't even exist in gcloud anymore.
This commit is contained in:
Jeff Grafton
2016-05-04 14:10:00 -07:00
parent 0db3ca4b50
commit bc7922c374
4 changed files with 27 additions and 48 deletions

View File

@@ -34,10 +34,7 @@ function fetch_output_tars() {
}
function fetch_server_version_tars() {
local -r msg=$(gcloud ${CMD_GROUP:-} container get-server-config --project=${PROJECT} --zone=${ZONE} | grep defaultClusterVersion)
# msg will look like "defaultClusterVersion: 1.0.1". Strip
# everything up to, including ": "
local -r build_version="v${msg##*: }"
local -r build_version="v$(gcloud ${CMD_GROUP:-} container get-server-config --project=${PROJECT} --zone=${ZONE} --format='value(defaultClusterVersion)')"
fetch_tars_from_gcs "release" "${build_version}"
unpack_binaries
}