mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 08:40:42 +00:00
force pod deletion on e2e network tests
This commit is contained in:
parent
1fa20301a0
commit
653eb230f2
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user