Add 'nodes' everywhere 'minions' can be used in api / cli

pull/6/head
Clayton Coleman 2014-12-07 22:45:29 -05:00
parent 19379b5a38
commit 9030759df8
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ var parser = kubecfg.NewParser(map[string]runtime.Object{
"services": &api.Service{},
"replicationControllers": &api.ReplicationController{},
"minions": &api.Node{},
"nodes": &api.Node{},
"events": &api.Event{},
})

View File

@ -322,6 +322,7 @@ func (m *Master) init(c *Config) {
"services": service.NewREST(m.serviceRegistry, c.Cloud, m.minionRegistry, m.portalNet),
"endpoints": endpoint.NewREST(m.endpointRegistry),
"minions": minion.NewREST(m.minionRegistry),
"nodes": minion.NewREST(m.minionRegistry),
"events": event.NewREST(m.eventRegistry),
// TODO: should appear only in scheduler API group.