cli: ensure node status and drain use correct cmd name. (#13656)
This commit is contained in:
parent
17a467020c
commit
9eb63c9e03
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
cli: Fixed a bug in the names of the `node drain` and `node status` sub-commands
|
||||
```
|
|
@ -126,7 +126,7 @@ func (c *NodeDrainCommand) AutocompleteArgs() complete.Predictor {
|
|||
})
|
||||
}
|
||||
|
||||
func (c *NodeDrainCommand) Name() string { return "node-drain" }
|
||||
func (c *NodeDrainCommand) Name() string { return "node drain" }
|
||||
|
||||
func (c *NodeDrainCommand) Run(args []string) int {
|
||||
var enable, disable, detach, force,
|
||||
|
|
|
@ -141,7 +141,7 @@ func (c *NodeStatusCommand) AutocompleteArgs() complete.Predictor {
|
|||
})
|
||||
}
|
||||
|
||||
func (c *NodeStatusCommand) Name() string { return "node-status" }
|
||||
func (c *NodeStatusCommand) Name() string { return "node status" }
|
||||
|
||||
func (c *NodeStatusCommand) Run(args []string) int {
|
||||
|
||||
|
|
Loading…
Reference in New Issue