-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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.Stop() leaves orphan /tmp/envtest-serving-certs-* directories #1496
Comments
/assign |
@invidian I see the cleanup code to handling the removal of these |
Hmm, I use Following code can be used for testing: package main
import (
"testing"
"sigs.k8s.io/controller-runtime/pkg/envtest"
)
func TestHelloWorld(t *testing.T) {
testEnv := &envtest.Environment{}
_, err := testEnv.Start()
if err != nil {
t.Fatalf("starting test environment: %v", err)
}
if err := testEnv.Stop(); err != nil {
t.Fatalf("stopping test environment: %v", err)
}
} Then, run as Using |
Yes, that make sense. So the behavior while using existing cluster, its not cleaned |
Executing the following snippet in tests:
Leaves orphan files in
/tmp
:They should be cleaned up.
The text was updated successfully, but these errors were encountered: