Skip to content

Commit

Permalink
Merge pull request #103666 from rvanderp3/automated-cherry-pick-of-#9…
Browse files Browse the repository at this point in the history
…4693-upstream-release-1.19

Automated cherry pick of #94693: test/e2e: Busybox image is not being templatized
  • Loading branch information
k8s-ci-robot committed Jul 26, 2021
2 parents 4900b04 + 03499a9 commit 9f3d747
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/e2e/kubectl/kubectl.go
Expand Up @@ -1185,7 +1185,7 @@ metadata:

ginkgo.It("should check if kubectl describe prints relevant information for cronjob", func() {
ginkgo.By("creating a cronjob")
cronjobYaml := commonutils.SubstituteImageName(string(readTestFileOrDie("busybox-cronjob.yaml")))
cronjobYaml := commonutils.SubstituteImageName(string(readTestFileOrDie("busybox-cronjob.yaml.in")))
framework.RunKubectlOrDieInput(ns, cronjobYaml, "create", "-f", "-")

ginkgo.By("waiting for cronjob to start.")
Expand Down Expand Up @@ -1345,7 +1345,7 @@ metadata:
var podYaml string
ginkgo.BeforeEach(func() {
ginkgo.By("creating the pod")
podYaml = commonutils.SubstituteImageName(string(readTestFileOrDie("busybox-pod.yaml")))
podYaml = commonutils.SubstituteImageName(string(readTestFileOrDie("busybox-pod.yaml.in")))
framework.RunKubectlOrDieInput(ns, podYaml, "create", "-f", "-")
framework.ExpectEqual(e2epod.CheckPodsRunningReady(c, ns, []string{busyboxPodName}, framework.PodStartTimeout), true)
})
Expand Down
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: test
image: busybox
image: {{.BusyBoxImage}}
args:
- "/bin/true"
restartPolicy: OnFailure
Expand Up @@ -6,7 +6,7 @@ metadata:
app: busybox1
spec:
containers:
- image: busybox
- image: {{.BusyBoxImage}}
command: ["/bin/sh", "-c", "mkdir -p /root/foo/bar && echo 'foobar' > /root/foo/bar/foo.bar && sleep 3600"]
imagePullPolicy: IfNotPresent
name: busybox
Expand Down

0 comments on commit 9f3d747

Please sign in to comment.