mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 22:53:22 +00:00
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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user