Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewCIDRSet (0.11 sec)

  1. pkg/controller/nodeipam/ipam/sync/sync_test.go

    			mode: SyncFromCluster,
    			node: nil,
    			fake: fakeAPIs{
    				nodeRet: nodeWithCIDRRange,
    			},
    			wantError: false,
    		},
    	} {
    		logger, _ := ktesting.NewTestContext(t)
    		cidr, _ := cidrset.NewCIDRSet(clusterCIDRRange, 24)
    		tc.fake.logger = logger
    		sync := New(&tc.fake, &tc.fake, &tc.fake, tc.mode, "node1", cidr)
    		doneChan := make(chan struct{})
    
    		// Do a single step of the loop.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 23:39:52 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  2. pkg/controller/nodeipam/ipam/range_allocator.go

    	// cidrSet are mapped to clusterCIDR by index
    	cidrSets := make([]*cidrset.CidrSet, len(allocatorParams.ClusterCIDRs))
    	for idx, cidr := range allocatorParams.ClusterCIDRs {
    		cidrSet, err := cidrset.NewCIDRSet(cidr, allocatorParams.NodeCIDRMaskSizes[idx])
    		if err != nil {
    			return nil, err
    		}
    		cidrSets[idx] = cidrSet
    	}
    
    	ra := &rangeAllocator{
    		client:       client,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top