Deleting a namespace is insufficient to cleanup in e2e
Graceful deletion requires more time to terminate namespaces, and not waiting for namespaces to delete causes scheduling errors
This commit is contained in:
@@ -63,7 +63,7 @@ var _ = Describe("Examples e2e", func() {
|
||||
|
||||
AfterEach(func() {
|
||||
By(fmt.Sprintf("Destroying namespace for this suite %v", ns))
|
||||
if err := c.Namespaces().Delete(ns); err != nil {
|
||||
if err := deleteNS(c, ns); err != nil {
|
||||
Failf("Couldn't delete ns %s", err)
|
||||
}
|
||||
})
|
||||
@@ -458,7 +458,7 @@ var _ = Describe("Examples e2e", func() {
|
||||
var err error
|
||||
namespaces[i], err = createTestingNS(fmt.Sprintf("dnsexample%d", i), c)
|
||||
if namespaces[i] != nil {
|
||||
defer c.Namespaces().Delete(namespaces[i].Name)
|
||||
defer deleteNS(c, namespaces[i].Name)
|
||||
}
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
}
|
||||
|
Reference in New Issue
Block a user