-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Can't delete namespaces from test environment #880
Copy link
Copy link
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
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
BeforeEachand delete it inAfterEachso 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 theTerminatingphase 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?