Skip to content

Commit 9824591

Browse files
Make image preload timeout configurable
1 parent eba398a commit 9824591

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clusterloader2/pkg/imagepreload/imagepreload.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,18 @@ const (
4444
namespace = "preload"
4545
daemonsetName = "preload"
4646
pollingInterval = 5 * time.Second
47-
pollingTimeout = 15 * time.Minute
4847
)
4948

5049
var (
51-
images []string
50+
images []string
51+
pollingTimeout = 15 * time.Minute
5252
//go:embed manifests
5353
manifestsFS embed.FS
5454
)
5555

5656
func InitFlags() {
5757
flags.StringSliceEnvVar(&images, "node-preload-images", "NODE_PRELOAD_IMAGES", []string{}, "List of images to preload on each node in the test cluster before executing tests")
58+
flags.DurationEnvVar(&pollingTimeout, "node-preload-images-timeout", "NODE_PRELOAD_IMAGES_TIMEOUT", 15*time.Minute, "Timeout for waiting for all nodes to preload images (e.g. 10m, 1h)")
5859
}
5960

6061
type controller struct {

0 commit comments

Comments
 (0)