From a3291a87d72f55ae9dd5e9b9df2dc13afcedbb04 Mon Sep 17 00:00:00 2001 From: David Porter Date: Tue, 31 Jan 2023 13:34:13 -0800 Subject: [PATCH] test: Use preloaded busybox image in mirror pod test Instead of hardcoding the busybox image, use the one that is preloaded during the test using imageutils. Signed-off-by: David Porter --- test/e2e_node/mirror_pod_grace_period_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e_node/mirror_pod_grace_period_test.go b/test/e2e_node/mirror_pod_grace_period_test.go index c6afd41365c..7e3c31bbd12 100644 --- a/test/e2e_node/mirror_pod_grace_period_test.go +++ b/test/e2e_node/mirror_pod_grace_period_test.go @@ -157,7 +157,7 @@ spec: terminationGracePeriodSeconds: 20 containers: - name: m-test - image: busybox:1.31.1 + image: %s command: - /bin/sh args: @@ -171,7 +171,7 @@ spec: sleep 1000 ` file := staticPodPath(dir, name, namespace) - podYaml := fmt.Sprintf(template, name, namespace) + podYaml := fmt.Sprintf(template, name, namespace, imageutils.GetE2EImage(imageutils.BusyBox)) f, err := os.OpenFile(file, os.O_RDWR|os.O_TRUNC|os.O_CREATE, 0666) if err != nil {