package node
import "k8s.io/kubernetes/pkg/util/node"
Index ¶
- func GetHostname(hostnameOverride string) string
- func GetNodeHostIP(node *api.Node) (net.IP, error)
- func GetZoneKey(node *api.Node) string
- func SetNodeCondition(c clientset.Interface, node string, condition api.NodeCondition) error
Functions ¶
func GetHostname ¶
func GetNodeHostIP ¶
GetNodeHostIP returns the provided node's IP, based on the priority: 1. NodeInternalIP 2. NodeExternalIP 3. NodeLegacyHostIP
func GetZoneKey ¶
Helper function that builds a string identifier that is unique per failure-zone Returns empty-string for no zone
func SetNodeCondition ¶
SetNodeCondition updates specific node condition with patch operation.
Source Files ¶
node.go
- Version
- v1.4.1-beta.0
- Published
- Sep 26, 2016
- Platform
- js/wasm
- Imports
- 10 packages
- Last checked
- 56 seconds ago –
Tools for package owners.