package
1.14.0-alpha.0
Repository: https://github.com/linxiulei/kubernetes.git
Documentation: pkg.go.dev

# Functions

GetHostname returns OS's hostname if 'hostnameOverride' is empty; otherwise, return 'hostnameOverride'.
GetNodeHostIP returns the provided node's IP, based on the priority: 1.
GetNodeIP returns the ip of node with the provided hostname.
GetPreferredNodeAddress returns the address of the provided node, using the provided preference order.
GetZoneKey is a helper function that builds a string identifier that is unique per failure-zone; it returns empty-string for no zone.
PatchNodeCIDR patches the specified node's CIDR to the given value.
PatchNodeStatus patches node status.
SetNodeCondition updates specific node condition with patch operation.

# Constants

NodeUnreachablePodMessage is the message on a pod when its state cannot be confirmed as kubelet is unresponsive on the node it is (was) running.
NodeUnreachablePodReason is the reason on a pod when its state cannot be confirmed as kubelet is unresponsive on the node it is (was) running.