Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ipAllocs (0.21 sec)

  1. pkg/registry/core/service/storage/storage.go

    	var secondaryIPFamily api.IPFamily = "" // sentinel value
    	if len(ipAllocs) > 1 {
    		secondaryIPFamily = otherFamily(serviceIPFamily)
    	}
    	genericStore := &REST{
    		Store:             store,
    		primaryIPFamily:   primaryIPFamily,
    		secondaryIPFamily: secondaryIPFamily,
    		alloc:             makeAlloc(serviceIPFamily, ipAllocs, portAlloc),
    		endpoints:         endpoints,
    		pods:              pods,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. pkg/registry/core/service/storage/alloc.go

    }
    
    // This is a trasitionary function to facilitate service REST flattening.
    func makeAlloc(defaultFamily api.IPFamily, ipAllocs map[api.IPFamily]ipallocator.Interface, portAlloc portallocator.Interface) Allocators {
    	return Allocators{
    		defaultServiceIPFamily:      defaultFamily,
    		serviceIPAllocatorsByFamily: ipAllocs,
    		serviceNodePorts:            portAlloc,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  3. src/net/netip/netip_test.go

    	}
    	for _, test := range tests {
    		prefix := test.ip + test.slash
    		t.Run(prefix, func(t *testing.T) {
    			ipAllocs := int(testing.AllocsPerRun(5, func() {
    				ParseAddr(test.ip)
    			}))
    			prefixAllocs := int(testing.AllocsPerRun(5, func() {
    				ParsePrefix(prefix)
    			}))
    			if got := prefixAllocs - ipAllocs; got != 0 {
    				t.Errorf("allocs=%d, want 0", got)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  4. pkg/registry/core/service/storage/storage_test.go

    		ResourcePrefix:          "services",
    	}
    
    	ipAllocs := map[api.IPFamily]ipallocator.Interface{}
    	for _, fam := range ipFamilies {
    		switch fam {
    		case api.IPv4Protocol:
    			_, cidr, _ := netutils.ParseCIDRSloppy("10.0.0.0/16")
    			ipAllocs[fam] = makeIPAllocator(cidr)
    		case api.IPv6Protocol:
    			_, cidr, _ := netutils.ParseCIDRSloppy("2000::/108")
    			ipAllocs[fam] = makeIPAllocator(cidr)
    		default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
Back to top