Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFamily ¶
type IPFamily string
IPFamily string representing ip family
func NameToIP ¶
NameToIP converts the resource name to net.IP. Given a limitation in the Kubernetes API server (see: https://github.com/kubernetes/kubernetes/pull/100950) CloudPrivateIPConfig.metadata.name cannot represent an IPv6 address. To work-around this limitation it was decided that the network plugin creating the CR will fully expand the IPv6 address and replace all colons with dots, Example: The IPv6 address fc00:f853:ccd:e793::54 will be represented as: fc00.f853.0ccd.e793.0000.0000.0000.0054, We thus need to replace every fifth character's dot with a colon.
Click to show internal directories.
Click to hide internal directories.