Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for allocateNext (0.21 sec)

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

    				if ok {
    					allocatedIP, err = svcAllocator.AllocateNextService(service)
    				} else {
    					allocatedIP, err = allocator.AllocateNext()
    				}
    			} else {
    				allocatedIP, err = allocator.AllocateNext()
    			}
    			if err != nil {
    				return allocated, errors.NewInternalError(fmt.Errorf("failed to allocate a serviceIP: %v", err))
    			}
    			allocated[family] = allocatedIP.String()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
  2. pkg/controller/nodeipam/ipam/sync/sync.go

    			"Cannot allocate CIDRs in mode %q", sync.mode)
    		return fmt.Errorf("controller cannot allocate CIDRS in mode %q", sync.mode)
    	}
    
    	cidrRange, err := sync.set.AllocateNext()
    	if err != nil {
    		return err
    	}
    	// If addAlias returns a hard error, cidrRange will be leaked as there
    	// is no durable record of the range. The missing space will be
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 07:50:01 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  3. pkg/kubelet/userns/userns_manager.go

    // the length for the user namespace range.
    func (m *UsernsManager) allocateOne(pod types.UID) (firstID uint32, length uint32, err error) {
    	firstZero, found, err := m.used.AllocateNext()
    	if err != nil {
    		return 0, 0, err
    	}
    	if !found {
    		return 0, 0, fmt.Errorf("could not find an empty slot to allocate a user namespace")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  4. pkg/controller/nodeipam/ipam/range_allocator.go

    		return r.occupyCIDRs(node)
    	}
    
    	logger := klog.FromContext(ctx)
    	allocatedCIDRs := make([]*net.IPNet, len(r.cidrSets))
    
    	for idx := range r.cidrSets {
    		podCIDR, err := r.cidrSets[idx].AllocateNext()
    		if err != nil {
    			controllerutil.RecordNodeStatusChange(logger, r.recorder, node, "CIDRNotAvailable")
    			return fmt.Errorf("failed to allocate cidr from cluster cidr at idx:%v: %v", idx, err)
    		}
    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