-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
envtest.Environment should cleanup CRDs on Stop() #420
Comments
/kind feature |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/lifecycle frozen |
envtest.Environment
does not cleanup CRDs whenStop()
is called. When you use anEnvironment
withUseExistingCluster = true
, this leaves CRDs hanging around in the cluster. So the second time you rungo test
, it will fail because "can't create CRDs which already exist". So it would be really useful ifStop()
also deleted the CRDs by default irrespective of whether we use existing cluster or not.The text was updated successfully, but these errors were encountered: