Process cluster-scoped owners correctly

This commit is contained in:
Jordan Liggitt
2017-12-14 15:43:37 -05:00
parent bba84d785e
commit 34c3a254d8
5 changed files with 159 additions and 8 deletions

View File

@@ -200,8 +200,10 @@ type testContext struct {
// if workerCount > 0, will start the GC, otherwise it's up to the caller to Run() the GC.
func setup(t *testing.T, workerCount int) *testContext {
result := kubeapiservertesting.StartTestServerOrDie(t, nil, framework.SharedEtcd())
return setupWithServer(t, kubeapiservertesting.StartTestServerOrDie(t, nil, framework.SharedEtcd()), workerCount)
}
func setupWithServer(t *testing.T, result *kubeapiservertesting.TestServer, workerCount int) *testContext {
clientSet, err := clientset.NewForConfig(result.ClientConfig)
if err != nil {
t.Fatalf("error creating clientset: %v", err)