- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ipFamilyMap (0.08 sec)
-
pkg/proxy/util/utils.go
func MapIPsByIPFamily(ipStrings []string) map[v1.IPFamily][]net.IP { ipFamilyMap := map[v1.IPFamily][]net.IP{} for _, ipStr := range ipStrings { ip := netutils.ParseIPSloppy(ipStr) if ip != nil { // Since ip is parsed ok, GetIPFamilyFromIP will never return v1.IPFamilyUnknown ipFamily := GetIPFamilyFromIP(ip) ipFamilyMap[ipFamily] = append(ipFamilyMap[ipFamily], ip) } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 11:57:43 UTC 2024 - 7.4K bytes - Viewed (0) -
pkg/proxy/serviceport.go
// services, this is actually expected. Hence we downgraded from reporting by events // to just log lines with high verbosity ipFamilyMap := proxyutil.MapIPsByIPFamily(service.Spec.ExternalIPs) info.externalIPs = ipFamilyMap[ipFamily] // Log the IPs not matching the ipFamily if ips, ok := ipFamilyMap[proxyutil.OtherIPFamily(ipFamily)]; ok && len(ips) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jan 09 08:17:56 UTC 2024 - 10.7K bytes - Viewed (0)