Merge pull request #115441 from bobbypage/busybox-mirror-test

test: Use preloaded busybox image in mirror pod test
This commit is contained in:
Kubernetes Prow Robot 2023-02-01 12:21:36 -08:00 committed by GitHub
commit d415647739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {