Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AllocateService (0.13 sec)

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

    func (a *Allocator) Allocate(ip net.IP) error {
    	return a.AllocateService(nil, ip)
    }
    
    // AllocateService attempts to reserve the provided IP. ErrNotInRange or
    // ErrAllocated will be returned if the IP is not valid for this range
    // or has already been reserved.  ErrFull will be returned if there
    // are no addresses left.
    func (a *Allocator) AllocateService(svc *api.Service, ip net.IP) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/cidrallocator.go

    	ok := c.tree.DeletePrefix(cidr)
    	if ok {
    		klog.V(3).Infof("CIDR %s deleted", cidr)
    	}
    }
    
    func (c *MetaAllocator) AllocateService(service *api.Service, ip net.IP) error {
    	allocator, err := c.getAllocator(ip)
    	if err != nil {
    		return err
    	}
    	return allocator.AllocateService(service, ip)
    }
    
    func (c *MetaAllocator) Allocate(ip net.IP) error {
    	allocator, err := c.getAllocator(ip)
    	if err != nil {
    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/registry/core/service/storage/alloc.go

    				// TODO: simplify this and avoid all this duplicate code
    				svcAllocator, ok := allocator.(*ipallocator.MetaAllocator)
    				if ok {
    					err = svcAllocator.AllocateService(service, parsedIP)
    				} else {
    					err = allocator.Allocate(parsedIP)
    				}
    			} else {
    				err = allocator.Allocate(parsedIP)
    			}
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:05 UTC 2023
    - 37.3K bytes
    - Viewed (0)
Back to top