package
0.7.1
Repository: https://github.com/openyurtio/openyurt.git
Documentation: pkg.go.dev

# Functions

AddOrUpdateLabelsOnNode updates the labels on the node and returns true on success and false on failure.
CreateAddNodeHandler creates an add node handler.
CreateDeleteNodeHandler creates a delete node handler.
CreateUpdateNodeHandler creates a node update handler.
DeletePods will delete all pods from master running on given node, and return true if any pods were deleted, or were found pending deletion.
GetNodeCondition extracts the provided condition from the given status and returns that.
GetPodCondition extracts the provided condition from the given status and returns that.
GetPodConditionFromList extracts the provided condition from the given list of condition and returns the index of the condition and the condition.
MarkPodsNotReady updates ready status of given pods running on given node from master return true if success.
RecordNodeEvent records a event related to a node.
RecordNodeStatusChange records a event related to a node status change.
SetPodTerminationReason attempts to set a reason and message in the pod status, updates it in the apiserver, and returns an error if it encounters one.
SwapNodeControllerTaint returns true in case of success and false otherwise.
UpdatePodCondition updates existing pod condition or creates a new one.

# Variables

AnnotationKeyNodeAutonomy is an annotation key for node autonomy.