From ef1fc05dff3b708615e4bf11eb5b932808bfcd9e Mon Sep 17 00:00:00 2001 From: Matej Kralik Date: Thu, 7 Nov 2024 12:33:28 +0100 Subject: [PATCH] Fix hardcoded sleep image (#768) --- pkg/tests/ossm/initcontainer_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/tests/ossm/initcontainer_test.go b/pkg/tests/ossm/initcontainer_test.go index 4556a0d2..f4744e8f 100644 --- a/pkg/tests/ossm/initcontainer_test.go +++ b/pkg/tests/ossm/initcontainer_test.go @@ -41,7 +41,7 @@ func TestInitContainerNotRemovedDuringInjection(t *testing.T) { oc.RecreateNamespace(t, ns.Bookinfo) t.LogStep("Deploying test pod.") - oc.ApplyString(t, ns.Bookinfo, testInitContainerYAML) + oc.ApplyTemplate(t, ns.Bookinfo, testInitContainerYAML, nil) oc.WaitDeploymentRolloutComplete(t, ns.Bookinfo, "sleep-init") t.LogStep("Checking pod logs for init message.") @@ -76,13 +76,13 @@ spec: initContainers: - name: init - image: curlimages/curl:8.4.0 + image: {{ image "sleep" }} command: ["/bin/echo", "[init worked]"] imagePullPolicy: IfNotPresent containers: - name: sleep - image: curlimages/curl:8.4.0 + image: {{ image "sleep" }} command: ["/bin/sleep", "3650d"] imagePullPolicy: IfNotPresent` )