From 653eb230f2a8d5e0f9015358f9bb66c25fcaf229 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Tue, 9 Jun 2020 22:00:03 +0200 Subject: [PATCH] force pod deletion on e2e network tests --- test/e2e/network/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/network/util.go b/test/e2e/network/util.go index dfa3bd4dd49..7e9b03b7895 100644 --- a/test/e2e/network/util.go +++ b/test/e2e/network/util.go @@ -81,11 +81,13 @@ func DescribeSvc(ns string) { // newAgnhostPod returns a pod that uses the agnhost image. The image's binary supports various subcommands // that behave the same, no matter the underlying OS. func newAgnhostPod(name string, args ...string) *v1.Pod { + zero := int64(0) return &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: name, }, Spec: v1.PodSpec{ + TerminationGracePeriodSeconds: &zero, Containers: []v1.Container{ { Name: "agnhost",