Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for convertToV1IPFamily (0.25 sec)

  1. pkg/proxy/util/utils.go

    		ipFamily := convertToV1IPFamily(netutils.IPFamilyOfCIDR(cidr))
    		ipFamilyMap[ipFamily] = append(ipFamilyMap[ipFamily], cidr)
    	}
    	return ipFamilyMap
    }
    
    // GetIPFamilyFromIP Returns the IP family of ipStr, or IPFamilyUnknown if ipStr can't be parsed as an IP
    func GetIPFamilyFromIP(ip net.IP) v1.IPFamily {
    	return convertToV1IPFamily(netutils.IPFamilyOf(ip))
    }
    
    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/registry/core/service/ipallocator/cidrallocator.go

    		ready := true
    		if !isReady(serviceCIDR) || !serviceCIDR.DeletionTimestamp.IsZero() {
    			ready = false
    		}
    
    		for _, cidr := range serviceCIDR.Spec.CIDRs {
    			if c.ipFamily == api.IPFamily(convertToV1IPFamily(netutils.IPFamilyOfCIDRString(cidr))) {
    				cidrsSet.Insert(cidr)
    				cidrReady[cidr] = ready
    			}
    		}
    	}
    
    	// obtain the existing allocators and set the existing state
    	treeSet := sets.New[string]()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. pkg/controller/servicecidrs/servicecidrs_controller.go

    	for _, cidr := range serviceCIDR.Spec.CIDRs {
    		// get all the IPv4 addresses
    		ipLabelSelector := labels.Set(map[string]string{
    			networkingapiv1alpha1.LabelIPAddressFamily: string(convertToV1IPFamily(netutils.IPFamilyOfCIDRString(cidr))),
    			networkingapiv1alpha1.LabelManagedBy:       ipallocator.ControllerName,
    		}).AsSelectorPreValidated()
    		ips, err := c.ipAddressLister.List(ipLabelSelector)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 18K bytes
    - Viewed (0)
Back to top