From 03bc96208fae445ea2370691fdeda8304c9be986 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Fri, 29 Sep 2017 11:58:38 -0700 Subject: [PATCH] prepull images after disk eviction tests --- test/e2e_node/eviction_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e_node/eviction_test.go b/test/e2e_node/eviction_test.go index 3b99f8ede61..5dba4c9ef23 100644 --- a/test/e2e_node/eviction_test.go +++ b/test/e2e_node/eviction_test.go @@ -349,6 +349,11 @@ func runEvictionTest(f *framework.Framework, pressureTimeout time.Duration, expe By(fmt.Sprintf("deleting pod: %s", spec.pod.Name)) f.PodClient().DeleteSync(spec.pod.Name, &metav1.DeleteOptions{}, 10*time.Minute) } + if expectedNodeCondition == v1.NodeDiskPressure && framework.TestContext.PrepullImages { + // The disk eviction test may cause the prepulled images to be evicted, + // prepull those images again to ensure this test not affect following tests. + PrePullAllImages() + } By("making sure we can start a new pod after the test") podName := "test-admit-pod" f.PodClient().CreateSync(&v1.Pod{