Skip to content

Commit 5592b5d

Browse files
authored
Merge pull request kubernetes#91470 from MHBauer/fail-0-remote-images
explicitly fail if no images are found when running remote tests
2 parents f834c92 + 58924c2 commit 5592b5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/e2e_node/runner/remote/run_remote.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ func main() {
244244
klog.Fatalf("Could not retrieve list of images based on image prefix %q and family %q: %v",
245245
imageConfig.ImageRegex, imageConfig.ImageFamily, err)
246246
}
247+
if len(images) == 0 { // if we have no images we can't run anything
248+
klog.Fatalf("No matching images retrieved on image prefix %q and family %q: %v",
249+
imageConfig.ImageRegex, imageConfig.ImageFamily, err)
250+
}
247251
} else {
248252
images = []string{imageConfig.Image}
249253
}

0 commit comments

Comments
 (0)