New scheduler API

This commit adds a Binding object. The idea is that schedulers can write
these to cause pods to be asssigned to hosts. I'll provide an implementation
along with a rudimentary scheduler plugin.

This continues k8s' tradition of phrasing all APIs as RESTful handlers.
This commit is contained in:
Daniel Smith
2014-07-23 16:09:37 -07:00
parent e35dfedd79
commit 7d605467dc
7 changed files with 137 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ func (m *Master) init(cloud cloudprovider.Interface, podInfoGetter client.PodInf
"replicationControllers": registry.NewControllerRegistryStorage(m.controllerRegistry, m.podRegistry),
"services": registry.MakeServiceRegistryStorage(m.serviceRegistry, cloud, m.minionRegistry),
"minions": registry.MakeMinionRegistryStorage(m.minionRegistry),
"bindings": registry.MakeBindingStorage(m.podRegistry),
}
}