Documentation
¶
Index ¶
- func ShouldEvacuateNode(machine *Machine) bool
- type Client
- func (cl *Client) AllowMachineDrain(ctx context.Context, machine *Machine) error
- func (cl *Client) AllowMachineTermination(ctx context.Context, machine *Machine) error
- func (cl *Client) GetMachineForNode(ctx context.Context, node *corev1.Node) (*Machine, error)
- func (cl *Client) PreventMachineDeletion(ctx context.Context, machine *Machine) error
- type Machine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShouldEvacuateNode ¶
ShouldEvacuateNode returns true if the machine is being deleted
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AllowMachineDrain ¶
AllowMachineDrain removes the annotation that prevents draining the Node.
func (*Client) AllowMachineTermination ¶
AllowMachineTermination removes the annotation that prevents removal of the Node.
func (*Client) GetMachineForNode ¶
GetMachineForNode tries to get the Machine that controls the Node. Returns "nil, nil" if: * ClusterAPI is not deployed in this cluster * the Node is not managed by ClusterAPI * the Machine could not be found
func (*Client) PreventMachineDeletion ¶
PreventMachineDeletion sets hooks that prevent ClusterAPI from terminating the node and thus the Satellite. The hooks are only set when the Machine is not already in the process of being deleted.
type Machine ¶
type Machine = clusterapiv1beta1.Machine
Click to show internal directories.
Click to hide internal directories.