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 <david@porter.me>
This commit is contained in:
David Porter 2023-01-31 13:34:13 -08:00
parent f58f70bd57
commit a3291a87d7

View File

@ -157,7 +157,7 @@ spec:
terminationGracePeriodSeconds: 20 terminationGracePeriodSeconds: 20
containers: containers:
- name: m-test - name: m-test
image: busybox:1.31.1 image: %s
command: command:
- /bin/sh - /bin/sh
args: args:
@ -171,7 +171,7 @@ spec:
sleep 1000 sleep 1000
` `
file := staticPodPath(dir, name, namespace) 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) f, err := os.OpenFile(file, os.O_RDWR|os.O_TRUNC|os.O_CREATE, 0666)
if err != nil { if err != nil {