You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
flags.DurationVar(&nodeKiller.SimulatedDowntime, "node-killer-simulated-downtime", 10*time.Minute, "A delay between node death and recreation")
355
355
}
356
356
357
-
// RegisterNodeFlags registers flags specific to the node e2e test suite.
358
-
funcRegisterNodeFlags(flags*flag.FlagSet) {
359
-
// Mark the test as node e2e when node flags are api.Registry.
360
-
TestContext.NodeE2E=true
361
-
flags.StringVar(&TestContext.NodeName, "node-name", "", "Name of the node to run tests on.")
362
-
// TODO(random-liu): Move kubelet start logic out of the test.
363
-
// TODO(random-liu): Move log fetch logic out of the test.
364
-
// There are different ways to start kubelet (systemd, initd, docker, manually started etc.)
365
-
// and manage logs (journald, upstart etc.).
366
-
// For different situation we need to mount different things into the container, run different commands.
367
-
// It is hard and unnecessary to deal with the complexity inside the test suite.
368
-
flags.BoolVar(&TestContext.NodeConformance, "conformance", false, "If true, the test suite will not start kubelet, and fetch system log (kernel, docker, kubelet log etc.) to the report directory.")
369
-
flags.BoolVar(&TestContext.PrepullImages, "prepull-images", true, "If true, prepull images so image pull failures do not cause test failures.")
370
-
flags.StringVar(&TestContext.ImageDescription, "image-description", "", "The description of the image which the test will be running on.")
371
-
flags.StringVar(&TestContext.SystemSpecName, "system-spec-name", "", "The name of the system spec (e.g., gke) that's used in the node e2e test. The system specs are in test/e2e_node/system/specs/. This is used by the test framework to determine which tests to run for validating the system requirements.")
372
-
flags.Var(cliflag.NewMapStringString(&TestContext.ExtraEnvs), "extra-envs", "The extra environment variables needed for node e2e tests. Format: a list of key=value pairs, e.g., env1=val1,env2=val2")
@@ -62,6 +63,24 @@ var runKubeletMode = flag.Bool("run-kubelet-mode", false, "If true, only start k
62
63
varsystemValidateMode=flag.Bool("system-validate-mode", false, "If true, only run system validation in current process, and not run test.")
63
64
varsystemSpecFile=flag.String("system-spec-file", "", "The name of the system spec file that will be used for node conformance test. If it's unspecified or empty, the default system spec (system.DefaultSysSpec) will be used.")
64
65
66
+
// registerNodeFlags registers flags specific to the node e2e test suite.
67
+
funcregisterNodeFlags(flags*flag.FlagSet) {
68
+
// Mark the test as node e2e when node flags are api.Registry.
69
+
framework.TestContext.NodeE2E=true
70
+
flags.StringVar(&framework.TestContext.NodeName, "node-name", "", "Name of the node to run tests on.")
71
+
// TODO(random-liu): Move kubelet start logic out of the test.
72
+
// TODO(random-liu): Move log fetch logic out of the test.
73
+
// There are different ways to start kubelet (systemd, initd, docker, manually started etc.)
74
+
// and manage logs (journald, upstart etc.).
75
+
// For different situation we need to mount different things into the container, run different commands.
76
+
// It is hard and unnecessary to deal with the complexity inside the test suite.
77
+
flags.BoolVar(&framework.TestContext.NodeConformance, "conformance", false, "If true, the test suite will not start kubelet, and fetch system log (kernel, docker, kubelet log etc.) to the report directory.")
78
+
flags.BoolVar(&framework.TestContext.PrepullImages, "prepull-images", true, "If true, prepull images so image pull failures do not cause test failures.")
79
+
flags.StringVar(&framework.TestContext.ImageDescription, "image-description", "", "The description of the image which the test will be running on.")
80
+
flags.StringVar(&framework.TestContext.SystemSpecName, "system-spec-name", "", "The name of the system spec (e.g., gke) that's used in the node e2e test. The system specs are in test/e2e_node/system/specs/. This is used by the test framework to determine which tests to run for validating the system requirements.")
81
+
flags.Var(cliflag.NewMapStringString(&framework.TestContext.ExtraEnvs), "extra-envs", "The extra environment variables needed for node e2e tests. Format: a list of key=value pairs, e.g., env1=val1,env2=val2")
0 commit comments