mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-19 16:49:35 +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
|
// 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",
|
||||||
|
Loading…
Reference in New Issue
Block a user