mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Add 'nodes' everywhere 'minions' can be used in api / cli
This commit is contained in:
parent
19379b5a38
commit
9030759df8
@ -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) {
|
|||||||
"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.
|
||||||
|
Loading…
Reference in New Issue
Block a user