Documentation ¶
Index ¶
- func DetermineNodeName() string
- func GetExitFunction() func(int)
- func IsIPv4(netIP net.IP) bool
- func IsIPv4String(ip string) bool
- func IsIPv6(netIP net.IP) bool
- func IsIPv6String(ip string) bool
- func NodenameFromFile() string
- func RemoveShutdownTimestampFile() error
- func SaveShutdownTimestamp() error
- func SetExitFunction(exitFunc func(int))
- func SetNodeNetworkUnavailableCondition(clientset kubernetes.Clientset, nodeName string, value bool, ...) error
- func Terminate()
- func WriteNodeConfig(nodeName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineNodeName ¶
func DetermineNodeName() string
DetermineNodeName is called to determine the node name to use for this instance of calico/node.
func GetExitFunction ¶
func GetExitFunction() func(int)
GetExitFunction return current exit function.
func NodenameFromFile ¶
func NodenameFromFile() string
NodenameFromFile reads the nodename file if it exists and returns the nodename within.
func RemoveShutdownTimestampFile ¶
func RemoveShutdownTimestampFile() error
RemoveShutdownTimestampFile removes shutdown timestamp file.
func SaveShutdownTimestamp ¶
func SaveShutdownTimestamp() error
SaveShutdownTimestamp saves timestamp to shutdown timestamp file.
func SetExitFunction ¶
func SetExitFunction(exitFunc func(int))
SetExitFunction set exitFunction to be called.
func SetNodeNetworkUnavailableCondition ¶
func SetNodeNetworkUnavailableCondition(clientset kubernetes.Clientset, nodeName string, value bool, timeout time.Duration) error
Set Kubernetes NodeNetworkUnavailable to false when starting https://kubernetes.io/docs/concepts/architecture/nodes/#condition
func WriteNodeConfig ¶
func WriteNodeConfig(nodeName string)
writeNodeConfig writes out the this node's configuration to disk for use by other components. Specifically, it creates: - nodenameFileName() - used to persist the determined node name to disk for future use.
Types ¶
This section is empty.