You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If you are debugging an E2E test and want to prevent its namespace from being deleted when the test ends (so that you can examine the state of resources in the namespace) you can set E2E_DEBUG_SKIP_CLEANUP env var.
334
-
ifos.Getenv("E2E_DEBUG_SKIP_CLEANUP") !="" {
335
-
GinkgoWriter.Println("Skipping namespace cleanup as E2E_DEBUG_SKIP_CLEANUP is set")
// Error shouldn't occur, UNLESS it's because the NS no longer exists
344
-
iferr!=nil&&!apierr.IsNotFound(err) {
345
-
Expect(err).ToNot(HaveOccurred())
346
-
}
338
+
funcDeleteNamespace(ns*corev1.Namespace) {
339
+
// If you are debugging an E2E test and want to prevent its namespace from being deleted when the test ends (so that you can examine the state of resources in the namespace) you can set E2E_DEBUG_SKIP_CLEANUP env var.
340
+
ifos.Getenv("E2E_DEBUG_SKIP_CLEANUP") !="" {
341
+
GinkgoWriter.Println("Skipping namespace cleanup as E2E_DEBUG_SKIP_CLEANUP is set")
0 commit comments