Documentation ¶
Index ¶
- Constants
- func GetHostname(hostnameOverride string) string
- func GetNodeHostIP(node *api.Node) (net.IP, error)
- func GetPreferredNodeAddress(node *api.Node, preferredAddressTypes []api.NodeAddressType) (string, error)
- func GetZoneKey(node *api.Node) string
- func SetNodeCondition(c clientset.Interface, node types.NodeName, condition api.NodeCondition) error
Constants ¶
View Source
const ( // The reason and message set on a pod when its state cannot be confirmed as kubelet is unresponsive // on the node it is (was) running. NodeUnreachablePodReason = "NodeLost" NodeUnreachablePodMessage = "Node %v which was running pod %v is unresponsive" )
Variables ¶
This section is empty.
Functions ¶
func GetHostname ¶
func GetNodeHostIP ¶
GetNodeHostIP returns the provided node's IP, based on the priority: 1. NodeInternalIP 2. NodeExternalIP 3. NodeLegacyHostIP
func GetPreferredNodeAddress ¶
func GetPreferredNodeAddress(node *api.Node, preferredAddressTypes []api.NodeAddressType) (string, error)
GetPreferredNodeAddress returns the address of the provided node, using the provided preference order. If none of the preferred address types are found, an error is returned.
func GetZoneKey ¶
Helper function that builds a string identifier that is unique per failure-zone Returns empty-string for no zone
func SetNodeCondition ¶
func SetNodeCondition(c clientset.Interface, node types.NodeName, condition api.NodeCondition) error
SetNodeCondition updates specific node condition with patch operation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.