Sync replication count with the api server on pod creation/deletion.

This commit is contained in:
Prashanth Balasubramanian
2015-02-13 11:57:27 -08:00
parent 1231e65829
commit 28d9260c0b
5 changed files with 149 additions and 129 deletions

View File

@@ -203,9 +203,8 @@ func startComponents(manifestURL string) (apiServerURL string) {
controllerManager := replicationControllerPkg.NewReplicationManager(cl)
// Prove that controllerManager's watch works by making it not sync until after this
// test is over. (Hopefully we don't take 10 minutes!)
controllerManager.Run(10 * time.Minute)
// TODO: Write an integration test for the replication controllers watch.
controllerManager.Run(1 * time.Second)
nodeResources := &api.NodeResources{}