k8s.io/apiserver: remove skewed completion from EtcdOptions

This commit is contained in:
Dr. Stefan Schimanski
2023-06-02 20:25:31 +02:00
parent f351c6d1ec
commit e9e4acb1dd
14 changed files with 166 additions and 211 deletions

View File

@@ -94,9 +94,6 @@ func setUp(t *testing.T) (*etcd3testing.EtcdTestServer, Config, *assert.Assertio
etcdOptions := options.NewEtcdOptions(storageConfig)
// unit tests don't need watch cache and it leaks lots of goroutines with etcd testing functions during unit tests
etcdOptions.EnableWatchCache = false
if err := etcdOptions.Complete(config.GenericConfig.DrainedNotify(), config.GenericConfig.AddPostStartHook); err != nil {
t.Fatal(err)
}
err := etcdOptions.ApplyWithStorageFactoryTo(storageFactory, config.GenericConfig)
if err != nil {
t.Fatal(err)