Skip to content

Commit 653eb23

Browse files
committed
force pod deletion on e2e network tests
1 parent 1fa2030 commit 653eb23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e/network/util.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ func DescribeSvc(ns string) {
8181
// newAgnhostPod returns a pod that uses the agnhost image. The image's binary supports various subcommands
8282
// that behave the same, no matter the underlying OS.
8383
func newAgnhostPod(name string, args ...string) *v1.Pod {
84+
zero := int64(0)
8485
return &v1.Pod{
8586
ObjectMeta: metav1.ObjectMeta{
8687
Name: name,
8788
},
8889
Spec: v1.PodSpec{
90+
TerminationGracePeriodSeconds: &zero,
8991
Containers: []v1.Container{
9092
{
9193
Name: "agnhost",

0 commit comments

Comments
 (0)