Fix a problem where if a minion went missing, we still thought the pod was running.

Also convert some tests to table driven.
This commit is contained in:
Brendan Burns
2014-09-17 15:26:01 -07:00
parent ac8ee45f4f
commit 99586b4da4
4 changed files with 141 additions and 73 deletions

View File

@@ -119,6 +119,7 @@ func (m *Master) init(cloud cloudprovider.Interface, podInfoGetter client.PodInf
PodCache: podCache,
PodInfoGetter: podInfoGetter,
Registry: m.podRegistry,
Minions: m.client,
}),
"replicationControllers": controller.NewREST(m.controllerRegistry, m.podRegistry),
"services": service.NewREST(m.serviceRegistry, cloud, m.minionRegistry),