Skip to content

Commit

Permalink
Fix hardcoded sleep image (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkralik3 authored Nov 7, 2024
1 parent 977dac3 commit ef1fc05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/tests/ossm/initcontainer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down Expand Up @@ -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`
)

0 comments on commit ef1fc05

Please sign in to comment.