Commit 469698a8 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #32169 from ixdy/node-e2e-flake

Automatic merge from submit-queue Make error more useful when failing to list node e2e images To help investigate https://github.com/kubernetes/kubernetes/issues/31694 if it happens again.
parents d06321f7 1e0cbbf4
...@@ -392,7 +392,7 @@ func (a byCreationTime) Swap(i, j int) { a[i], a[j] = a[j], a[i] } ...@@ -392,7 +392,7 @@ func (a byCreationTime) Swap(i, j int) { a[i], a[j] = a[j], a[i] }
func getGCEImages(imageRegex, project string, previousImages int) ([]string, error) { func getGCEImages(imageRegex, project string, previousImages int) ([]string, error) {
ilc, err := computeService.Images.List(project).Do() ilc, err := computeService.Images.List(project).Do()
if err != nil { if err != nil {
return nil, fmt.Errorf("Failed to list images in project %q and zone %q", project, zone) return nil, fmt.Errorf("Failed to list images in project %q: %v", project, err)
} }
imageObjs := []imageObj{} imageObjs := []imageObj{}
imageRe := regexp.MustCompile(imageRegex) imageRe := regexp.MustCompile(imageRegex)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment