Skip to content

Commit dd83dd3

Browse files
authored
Add lifecycle to POD under test (#25)
signed-off-by: salah hamadi <[email protected]>
1 parent cfc5a2e commit dd83dd3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

local-test-infra/local-pod-under-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ spec:
2828
limits:
2929
memory: 512Mi
3030
cpu: 0.25
31+
lifecycle:
32+
preStop:
33+
exec:
34+
command: ["/bin/sh","-c","killall -0 tail"]
3135
affinity:
3236
podAntiAffinity:
3337
requiredDuringSchedulingIgnoredDuringExecution:
@@ -38,4 +42,3 @@ spec:
3842
values:
3943
- test
4044
topologyKey: "kubernetes.io/hostname"
41-

0 commit comments

Comments
 (0)