add GenericAPIServer posthooks for initialization

This commit is contained in:
deads2k
2016-08-26 11:06:27 -04:00
parent a089791f3e
commit 7d1f13d3e0
9 changed files with 275 additions and 6 deletions

View File

@@ -155,6 +155,11 @@ func startMasterOrDie(masterConfig *master.Config) (*master.Master, *httptest.Se
glog.Fatalf("error in bringing up the master: %v", err)
}
// TODO have this start method actually use the normal start sequence for the API server
// this method never actually calls the `Run` method for the API server
// fire the post hooks ourselves
m.GenericAPIServer.RunPostStartHooks(genericapiserver.PostStartHookContext{})
return m, s
}