Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ipFamilyMap (0.08 sec)

  1. 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)
  2. 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)
Back to top