force pod deletion on e2e network tests

This commit is contained in:
Antonio Ojea 2020-06-09 22:00:03 +02:00
parent 1fa20301a0
commit 653eb230f2

View File

@ -81,11 +81,13 @@ func DescribeSvc(ns string) {
// newAgnhostPod returns a pod that uses the agnhost image. The image's binary supports various subcommands // 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. // that behave the same, no matter the underlying OS.
func newAgnhostPod(name string, args ...string) *v1.Pod { func newAgnhostPod(name string, args ...string) *v1.Pod {
zero := int64(0)
return &v1.Pod{ return &v1.Pod{
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
Name: name, Name: name,
}, },
Spec: v1.PodSpec{ Spec: v1.PodSpec{
TerminationGracePeriodSeconds: &zero,
Containers: []v1.Container{ Containers: []v1.Container{
{ {
Name: "agnhost", Name: "agnhost",