kubernetesk8s.io/kubernetes/pkg/util/node Index | Files

package node

import "k8s.io/kubernetes/pkg/util/node"

Index

Functions

func GetHostname

func GetHostname(hostnameOverride string) string

func GetNodeHostIP

func GetNodeHostIP(node *api.Node) (net.IP, error)

GetNodeHostIP returns the provided node's IP, based on the priority: 1. NodeInternalIP 2. NodeExternalIP 3. NodeLegacyHostIP

func GetZoneKey

func GetZoneKey(node *api.Node) string

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 string, condition api.NodeCondition) error

SetNodeCondition updates specific node condition with patch operation.

Source Files

node.go

Version
v1.4.2
Published
Oct 15, 2016
Platform
js/wasm
Imports
10 packages
Last checked
1 minute ago

Tools for package owners.