mirror of
https://github.com/rancher/types.git
synced 2025-09-24 19:39:13 +00:00
generated changes
This commit is contained in:
committed by
Alena Prokharchyk
parent
b99fdf3b4c
commit
e1bbb10b72
@@ -118,6 +118,8 @@ type NodeOperations interface {
|
||||
|
||||
ActionDrain(resource *Node, input *NodeDrainInput) error
|
||||
|
||||
ActionStopDrain(resource *Node) error
|
||||
|
||||
ActionUncordon(resource *Node) error
|
||||
}
|
||||
|
||||
@@ -182,6 +184,11 @@ func (c *NodeClient) ActionDrain(resource *Node, input *NodeDrainInput) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *NodeClient) ActionStopDrain(resource *Node) error {
|
||||
err := c.apiClient.Ops.DoAction(NodeType, "stopDrain", &resource.Resource, nil, nil)
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *NodeClient) ActionUncordon(resource *Node) error {
|
||||
err := c.apiClient.Ops.DoAction(NodeType, "uncordon", &resource.Resource, nil, nil)
|
||||
return err
|
||||
|
Reference in New Issue
Block a user