Documentation ¶
Index ¶
- func CreateAddNodeHandler(f func(node *v1.Node) error) func(obj interface{})
- func CreateDeleteNodeHandler(f func(node *v1.Node) error) func(obj interface{})
- func CreateUpdateNodeHandler(f func(oldNode, newNode *v1.Node) error) func(oldObj, newObj interface{})
- func GetNodeCondition(status *v1.NodeStatus, conditionType v1.NodeConditionType) (int, *v1.NodeCondition)
- func RecordNodeStatusChange(recorder record.EventRecorder, node *v1.Node, newStatus string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAddNodeHandler ¶
CreateAddNodeHandler creates an add node handler.
func CreateDeleteNodeHandler ¶
CreateDeleteNodeHandler creates a delete node handler. (Common to lifecycle and ipam)
func CreateUpdateNodeHandler ¶
func CreateUpdateNodeHandler(f func(oldNode, newNode *v1.Node) error) func(oldObj, newObj interface{})
CreateUpdateNodeHandler creates a node update handler. (Common to lifecycle and ipam)
func GetNodeCondition ¶
func GetNodeCondition(status *v1.NodeStatus, conditionType v1.NodeConditionType) (int, *v1.NodeCondition)
GetNodeCondition extracts the provided condition from the given status and returns that. Returns nil and -1 if the condition is not present, and the index of the located condition.
func RecordNodeStatusChange ¶
func RecordNodeStatusChange(recorder record.EventRecorder, node *v1.Node, newStatus string)
RecordNodeStatusChange records a event related to a node status change. (Common to lifecycle and ipam)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.