Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 717 for allocable (0.12 sec)

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

    					err = svcAllocator.AllocateService(service, parsedIP)
    				} else {
    					err = allocator.Allocate(parsedIP)
    				}
    			} else {
    				err = allocator.Allocate(parsedIP)
    			}
    			if err != nil {
    				el := field.ErrorList{field.Invalid(field.NewPath("spec", "clusterIPs"), service.Spec.ClusterIPs, fmt.Sprintf("failed to allocate IP %v: %v", ip, err))}
    				return allocated, errors.NewInvalid(api.Kind("Service"), service.Name, el)
    			}
    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/volume/csi/nodeinfomanager/nodeinfomanager.go

    	if maxAttachLimit == 0 {
    		return driverInfoSpec.Allocatable == nil || driverInfoSpec.Allocatable.Count == nil
    	}
    
    	return driverInfoSpec.Allocatable != nil && driverInfoSpec.Allocatable.Count != nil && int64(*driverInfoSpec.Allocatable.Count) == maxAttachLimit
    }
    
    func (nim *nodeInfoManager) installDriverToCSINode(
    	nodeInfo *storagev1.CSINode,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue59411.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"math"
    	"reflect"
    )
    
    func main() {
    	for i := 0; i < 100; i++ {
    		f()
    		g()
    	}
    }
    
    func f() {
    	// Allocate map.
    	m := map[float64]int{}
    	// Fill to just before a growth trigger.
    	const N = 13 << 4 // 6.5 * 2 * 2^k
    	for i := 0; i < N; i++ {
    		m[math.NaN()] = i
    	}
    	// Trigger growth.
    	m[math.NaN()] = N
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 08 05:25:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        CharBuffer buf2 = CharBuffer.allocate(expected.length());
        assertEquals(expected.length() == 0 ? -1 : expected.length(), reader.read(buf2));
        Java8Compatibility.flip(buf2);
        assertEquals(expected, buf2.toString());
        assertFullyRead(reader);
    
        // read in chunks to fixed CharBuffer
        reader = new CharSequenceReader(charSequence);
        buf2 = CharBuffer.allocate(5);
        builder = new StringBuilder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. pkg/kubelet/nodestatus/setters_test.go

    					},
    					Allocatable: v1.ResourceList{
    						v1.ResourceCPU:    *resource.NewMilliQuantity(2000, resource.DecimalSI),
    						v1.ResourceMemory: *resource.NewQuantity(1024, resource.BinarySI),
    						v1.ResourcePods:   *resource.NewQuantity(10, resource.DecimalSI),
    					},
    				},
    			},
    		},
    		{
    			desc:    "allocatable should equal capacity minus reservations",
    			node:    &v1.Node{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. pkg/kubelet/apis/podresources/types.go

    	GetCPUs(podUID, containerName string) []int64
    	// GetAllocatableCPUs returns the allocatable (not allocated) CPUs
    	GetAllocatableCPUs() []int64
    }
    
    type MemoryProvider interface {
    	// GetMemory returns information about the memory assigned to containers
    	GetMemory(podUID, containerName string) []*podresourcesapi.ContainerMemory
    	// GetAllocatableMemory returns the allocatable memory from the node
    	GetAllocatableMemory() []*podresourcesapi.ContainerMemory
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 17:33:04 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_s390x.S

     * callee-save, so they must be saved explicitly.
     */
    .globl crosscall_s390x
    crosscall_s390x:
    	/* save r6-r15 in the register save area of the calling function */
    	stmg    %r6, %r15, 48(%r15)
    
    	/* allocate 64 bytes of stack space to save f8-f15 */
    	lay     %r15, -64(%r15)
    
    	/* save callee-saved floating point registers */
    	std     %f8, 0(%r15)
    	std     %f9, 8(%r15)
    	std     %f10, 16(%r15)
    	std     %f11, 24(%r15)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 05 16:41:48 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. src/runtime/traceregion.go

    		}
    
    		// Add the existing block to the full list.
    		block.next = a.full
    		a.full = block
    	}
    
    	// Allocate a new block.
    	block = (*traceRegionAllocBlock)(sysAlloc(unsafe.Sizeof(traceRegionAllocBlock{}), &memstats.other_sys))
    	if block == nil {
    		throw("traceRegion: out of memory")
    	}
    
    	// Allocate space for our current request, so we always make
    	// progress.
    	block.off.Store(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. pkg/registry/core/service/portallocator/allocator.go

    func (r *PortAllocator) Used() int {
    	return r.portRange.Size - r.alloc.Free()
    }
    
    // Allocate attempts to reserve the provided port. ErrNotInRange or
    // ErrAllocated will be returned if the port is not valid for this range
    // or has already been reserved.  ErrFull will be returned if there
    // are no ports left.
    func (r *PortAllocator) Allocate(port int) error {
    	ok, offset := r.contains(port)
    	if !ok {
    		// update metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. pkg/registry/core/service/allocator/bitmap.go

    		},
    		allocated: big.NewInt(0),
    		count:     0,
    		max:       max,
    		rangeSpec: rangeSpec,
    	}
    
    	return &a
    }
    
    // Allocate attempts to reserve the provided item.
    // Returns true if it was allocated, false if it was already in use
    func (r *AllocationBitmap) Allocate(offset int) (bool, error) {
    	r.lock.Lock()
    	defer r.lock.Unlock()
    
    	// max is the maximum size of the usable items in the range
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top