mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
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:
parent
f58f70bd57
commit
a3291a87d7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user