Refactor to allow for a way to get list of e2e images

Signed-off-by: Steve Sloka <slokas@vmware.com>
This commit is contained in:
Steve Sloka
2019-02-25 22:37:06 -05:00
committed by Steve Sloka
parent 7955a2865c
commit 6dc5494ec9
7 changed files with 184 additions and 56 deletions

View File

@@ -75,6 +75,8 @@ type TestContextType struct {
// TODO: Deprecating this over time... instead just use gobindata_util.go , see #23987.
RepoRoot string
DockershimCheckpointDir string
// ListImages will list off all images that are used then quit
ListImages bool
// Provider identifies the infrastructure provider (gce, gke, aws)
Provider string
@@ -259,6 +261,8 @@ func RegisterCommonFlags() {
flag.StringVar(&TestContext.ImageServiceEndpoint, "image-service-endpoint", "", "The image service endpoint of cluster VM instances.")
flag.StringVar(&TestContext.DockershimCheckpointDir, "dockershim-checkpoint-dir", "/var/lib/dockershim/sandbox", "The directory for dockershim to store sandbox checkpoints.")
flag.StringVar(&TestContext.KubernetesAnywherePath, "kubernetes-anywhere-path", "/workspace/k8s.io/kubernetes-anywhere", "Which directory kubernetes-anywhere is installed to.")
flag.BoolVar(&TestContext.ListImages, "list-images", false, "If true, will show list of images used for runnning tests.")
}
// Register flags specific to the cluster e2e test suite.