Documentation
¶
Index ¶
- Constants
- func EnvGetBool(key string, defaultValue bool) bool
- func FileExists(filename string) bool
- func GetServiceCIDRFromNode(node *corev1.Node) (string, error)
- func IsIPAddrInList(ipAddr netip.Addr, ipAddrList []netip.Addr) bool
- func IsIPInBetweenOf(ip, ip1, ip2 string) bool
- func LoadAllocated(allocated map[string]string) (allocatedList, excludedList, reservedList []netip.Addr)
- func LoadCIDR(cidr string) (ipNet *net.IPNet, networkIPAddr netip.Addr, broadcastIPAddr netip.Addr, ...)
- func SafeAgentConcatName(name ...string) string
- type PoolInfo
- type VmnetcfgGetter
Constants ¶
View Source
const ( ExcludedMark = "EXCLUDED" ReservedMark = "RESERVED" AgentSuffixName = "agent" NodeArgsAnnotationKey = "rke2.io/node-args" ServiceCIDRFlag = "--service-cidr" ManagementNodeLabelKey = "node-role.kubernetes.io/control-plane" )
Variables ¶
This section is empty.
Functions ¶
func EnvGetBool ¶
func FileExists ¶
func GetServiceCIDRFromNode ¶ added in v0.3.0
func IsIPAddrInList ¶ added in v0.3.0
func IsIPInBetweenOf ¶ added in v0.3.0
func LoadAllocated ¶ added in v0.2.0
func LoadAllocated(allocated map[string]string) (allocatedList, excludedList, reservedList []netip.Addr)
LoadAllocated returns the un-allocatable IP addresses in three types of IP address lists, allocatedList, excludedList, and reservedList.
func SafeAgentConcatName ¶ added in v0.2.0
Types ¶
type PoolInfo ¶ added in v0.2.0
type VmnetcfgGetter ¶
type VmnetcfgGetter struct {
VmnetcfgCache ctlnetworkv1.VirtualMachineNetworkConfigCache
}
func (*VmnetcfgGetter) WhoUseIPPool ¶
func (g *VmnetcfgGetter) WhoUseIPPool(ipPool *networkv1.IPPool) ([]*networkv1.VirtualMachineNetworkConfig, error)
WhoUseIPPool requires adding network indexer to the vmnetcfg cache before invoking it
Click to show internal directories.
Click to hide internal directories.