mirror of https://github.com/k3s-io/k3s
Add 'nodes' everywhere 'minions' can be used in api / cli
parent
19379b5a38
commit
9030759df8
|
@ -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{},
|
||||
})
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue