Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsIPv6CIDR (0.11 sec)

  1. cmd/cloud-controller-manager/nodeipamcontroller.go

    	sortedSizes := func(maskSizeIPv4, maskSizeIPv6 int) []int {
    		nodeMaskCIDRs := make([]int, len(clusterCIDRs))
    
    		for idx, clusterCIDR := range clusterCIDRs {
    			if netutils.IsIPv6CIDR(clusterCIDR) {
    				nodeMaskCIDRs[idx] = maskSizeIPv6
    			} else {
    				nodeMaskCIDRs[idx] = maskSizeIPv4
    			}
    		}
    		return nodeMaskCIDRs
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 14 19:06:22 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. pkg/registry/core/rest/storage_core.go

    		primaryClusterIPAllocator, err = ipallocator.NewMetaAllocator(
    			networkingv1alphaClient,
    			c.Informers.Networking().V1alpha1().ServiceCIDRs(),
    			c.Informers.Networking().V1alpha1().IPAddresses(),
    			netutils.IsIPv6CIDR(&serviceClusterIPRange),
    		)
    		if err != nil {
    			return rangeRegistries{}, nil, nil, nil, fmt.Errorf("cannot create cluster IP allocator: %v", err)
    		}
    	}
    	primaryClusterIPAllocator.EnableMetrics()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  3. cmd/kube-controller-manager/app/core.go

    	sortedSizes := func(maskSizeIPv4, maskSizeIPv6 int) []int {
    		nodeMaskCIDRs := make([]int, len(clusterCIDRs))
    
    		for idx, clusterCIDR := range clusterCIDRs {
    			if netutils.IsIPv6CIDR(clusterCIDR) {
    				nodeMaskCIDRs[idx] = maskSizeIPv6
    			} else {
    				nodeMaskCIDRs[idx] = maskSizeIPv4
    			}
    		}
    		return nodeMaskCIDRs
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 39K bytes
    - Viewed (0)
  4. pkg/registry/core/service/ipallocator/bitmap.go

    	max := netutils.RangeSize(cidr)
    	base := netutils.BigForIP(cidr.IP)
    	rangeSpec := cidr.String()
    	var family api.IPFamily
    
    	if netutils.IsIPv6CIDR(cidr) {
    		family = api.IPv6Protocol
    		// Limit the max size, since the allocator keeps a bitmap of that size.
    		if max > 65536 {
    			max = 65536
    		}
    	} else {
    		family = api.IPv4Protocol
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  5. pkg/registry/core/service/ipallocator/ipallocator.go

    	}
    
    	// TODO: use the utils/net function once is available
    	size := hostsPerNetwork(cidr)
    	var family api.IPFamily
    	if netutils.IsIPv6CIDR(cidr) {
    		family = api.IPv6Protocol
    	} else {
    		family = api.IPv4Protocol
    	}
    	// Caching the first, offset and last addresses allows to optimize
    	// the search loops by using the netip.Addr iterator instead
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top