Merge pull request #91470 from MHBauer/fail-0-remote-images

explicitly fail if no images are found when running remote tests
This commit is contained in:
Kubernetes Prow Robot 2020-06-01 20:58:14 -07:00 committed by GitHub
commit 5592b5d67a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,6 +244,10 @@ func main() {
klog.Fatalf("Could not retrieve list of images based on image prefix %q and family %q: %v",
imageConfig.ImageRegex, imageConfig.ImageFamily, err)
}
if len(images) == 0 { // if we have no images we can't run anything
klog.Fatalf("No matching images retrieved on image prefix %q and family %q: %v",
imageConfig.ImageRegex, imageConfig.ImageFamily, err)
}
} else {
images = []string{imageConfig.Image}
}