Commit 9030759d authored by Clayton Coleman's avatar Clayton Coleman

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

parent 19379b5a
...@@ -80,6 +80,7 @@ var parser = kubecfg.NewParser(map[string]runtime.Object{ ...@@ -80,6 +80,7 @@ var parser = kubecfg.NewParser(map[string]runtime.Object{
"services": &api.Service{}, "services": &api.Service{},
"replicationControllers": &api.ReplicationController{}, "replicationControllers": &api.ReplicationController{},
"minions": &api.Node{}, "minions": &api.Node{},
"nodes": &api.Node{},
"events": &api.Event{}, "events": &api.Event{},
}) })
......
...@@ -322,6 +322,7 @@ func (m *Master) init(c *Config) { ...@@ -322,6 +322,7 @@ func (m *Master) init(c *Config) {
"services": service.NewREST(m.serviceRegistry, c.Cloud, m.minionRegistry, m.portalNet), "services": service.NewREST(m.serviceRegistry, c.Cloud, m.minionRegistry, m.portalNet),
"endpoints": endpoint.NewREST(m.endpointRegistry), "endpoints": endpoint.NewREST(m.endpointRegistry),
"minions": minion.NewREST(m.minionRegistry), "minions": minion.NewREST(m.minionRegistry),
"nodes": minion.NewREST(m.minionRegistry),
"events": event.NewREST(m.eventRegistry), "events": event.NewREST(m.eventRegistry),
// TODO: should appear only in scheduler API group. // TODO: should appear only in scheduler API group.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment