Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions clusterloader2/pkg/imagepreload/imagepreload.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,18 @@ const (
namespace = "preload"
daemonsetName = "preload"
pollingInterval = 5 * time.Second
pollingTimeout = 15 * time.Minute
)

var (
images []string
images []string
pollingTimeout = 15 * time.Minute
//go:embed manifests
manifestsFS embed.FS
)

func InitFlags() {
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")
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)")
}

type controller struct {
Expand Down