-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Milestone
Description
I'd like to use namespaces to isolate my tests from one another. For example, I want to create a new namespace with a random name in my BeforeEach
and delete it in AfterEach
so that individual tests don't have to worry about cleaning up after themselves.
However, I've observed that namespace deletion doesn't work when using envtest
. When I delete a namespace, the deletion timestamp on resources within that namespace remain unset, and the namespace stays in the Terminating
phase seemingly forever. The latter is true even if the namespace is empty (e.g. I delete it immediately after creating it).
Is this behavior expected? Is whatever mechanism that normally executes namespace deletion missing from envtest
?
andreyvelich, horis233, rikbw, croomes, alkar and 14 more
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.Important over the long term, but may not be staffed and/or may need multiple releases to complete.