Switch away from gcloud deprecated flags in compute resource listings

This commit is contained in:
Philip Ingrey
2017-08-09 17:45:44 +01:00
parent 0d17e9deb7
commit 697f92a5d2
6 changed files with 31 additions and 32 deletions

View File

@@ -76,7 +76,7 @@ if [ $remote = true ] ; then
if [[ $hosts == "" && $images == "" && $image_config_file == "" ]]; then
image_project=${IMAGE_PROJECT:-"cos-cloud"}
gci_image=$(gcloud compute images list --project $image_project \
--no-standard-images --regexp="cos-beta.*" --format="table[no-heading](name)")
--no-standard-images --filter="name ~ 'cos-beta.*'" --format="table[no-heading](name)")
images=$gci_image
metadata="user-data<${KUBE_ROOT}/test/e2e_node/jenkins/gci-init.yaml,gci-update-strategy=update_disabled"
fi