module documentation
Node group related commands
Function |
|
Add a node group to the cluster. |
Function |
|
Assign nodes to a group. |
Function |
|
Evacuate a node group. |
Function |
|
Shows info about node group. |
Function |
|
List node fields. |
Function |
|
List node groups and their properties. |
Function |
|
Undocumented |
Function |
|
Remove a node group from the cluster. |
Function |
|
Rename a node group. |
Function |
|
Modifies a node group's parameters. |
Function |
|
Shows the command that can be used to re-create a node group. |
Variable | commands |
Undocumented |
Function | _ |
Format dict data into command-line format. |
Function | _ |
Undocumented |
Function | _ |
Undocumented |
Constant | _ENV |
Undocumented |
Constant | _LIST |
Undocumented |
Add a node group to the cluster.
Parameters | |
opts | the command line options selected by the user |
args:list | a list of length 1 with the name of the group to create |
Returns | |
int | the desired exit code |
Assign nodes to a group.
Parameters | |
opts | the command line options selected by the user |
args:list | args[0]: group to assign nodes to; args[1:]: nodes to assign |
Returns | |
int | the desired exit code |
List node fields.
Parameters | |
opts | the command line options selected by the user |
args:list | fields to list, or empty for all |
Returns | |
int | the desired exit code |
List node groups and their properties.
Parameters | |
opts | the command line options selected by the user |
args:list | groups to list, or empty for all |
Returns | |
int | the desired exit code |
Remove a node group from the cluster.
Parameters | |
opts | the command line options selected by the user |
args:list | a list of length 1 with the name of the group to remove |
Returns | |
int | the desired exit code |
Rename a node group.
Parameters | |
opts | the command line options selected by the user |
args:list | a list of length 2, [old_name, new_name] |
Returns | |
int | the desired exit code |
Modifies a node group's parameters.
Parameters | |
opts | the command line options selected by the user |
args:list | should contain only one element, the node group name |
Returns | |
int | the desired exit code |
Shows the command that can be used to re-create a node group.
Currently it works only for ipolicy specs.
Format dict data into command-line format.
Parameters | |
data | The input dict to be formatted |
Returns | |
The formatted dict |