Documentation ¶
Index ¶
- func GetEscapedPreferredInternalIPAddressForNodeName(network *configv1.Network, node *corev1.Node) (string, error)
- func GetIPFromAddress(address string) (string, error)
- func GetInternalIPAddressesForNodeName(node *corev1.Node) ([]string, error)
- func GetPreferredIPFamily(network *configv1.Network) (string, error)
- func GetPreferredInternalIPAddressForNodeName(network *configv1.Network, node *corev1.Node) (string, string, error)
- func IsIPv4(ipString string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEscapedPreferredInternalIPAddressForNodeName ¶
func GetEscapedPreferredInternalIPAddressForNodeName(network *configv1.Network, node *corev1.Node) (string, error)
GetEscapedPreferredInternalIPAddressForNodeName returns the first internal ip address of the correct family with escaping for ipv6.
func GetIPFromAddress ¶
GetIPFromAddress takes a client or peer address and returns the IP address (unescaped if IPv6).
func GetPreferredIPFamily ¶
GetPreferredIPFamily checks network status for service CIDR to conclude IP family. If status is not yet populated fallback to spec.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.