Merge pull request #50398 from pci/gcloud-compute-list
Automatic merge from submit-queue (batch tested with PRs 47054, 50398, 51541, 51535, 51545) Switch away from gcloud deprecated flags in compute resource listings **What is fixed** Remove deprecated `gcloud compute` flags, see linked issue. **Which issue this PR fixes**: fixes #49673 **Special notes for your reviewer**: The change in `gcloudComputeResourceList` in `test/e2e/framework/ingress_utils.go` isn't strictly needed as currently no affected resources are called on within that file, however the function has the _potential_ to access affected resources so I covered it as well. Happy to change if deemed unnecessary. **Release note**: ```release-note NONE ```
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user