Implement sync behavior for controllers.

This commit is contained in:
Brendan Burns
2014-06-26 12:43:08 -07:00
parent ab308ad13a
commit a391b2ff03
4 changed files with 77 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ func (m *Master) init(cloud cloudprovider.Interface) {
go podCache.Loop()
m.storage = map[string]apiserver.RESTStorage{
"pods": registry.MakePodRegistryStorage(m.podRegistry, containerInfo, registry.MakeFirstFitScheduler(m.minionRegistry, m.podRegistry, m.random), cloud, podCache),
"replicationControllers": registry.MakeControllerRegistryStorage(m.controllerRegistry),
"replicationControllers": registry.MakeControllerRegistryStorage(m.controllerRegistry, m.podRegistry),
"services": registry.MakeServiceRegistryStorage(m.serviceRegistry, cloud, m.minionRegistry),
"minions": registry.MakeMinionRegistryStorage(m.minionRegistry),
}