Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 541 for allocable (0.15 sec)

  1. pkg/api/v1/resource/helpers.go

    		return "", err
    	}
    	return ExtractContainerResourceValue(fs, container)
    }
    
    // ExtractResourceValueByContainerNameAndNodeAllocatable extracts the value of a resource
    // by providing container name and node allocatable
    func ExtractResourceValueByContainerNameAndNodeAllocatable(fs *v1.ResourceFieldSelector, pod *v1.Pod, containerName string, nodeAllocatable v1.ResourceList) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 26 13:58:16 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/regalloc.go

    		}
    	}
    
    	// Figure out which registers we're allowed to use.
    	s.allocatable = s.f.Config.gpRegMask | s.f.Config.fpRegMask | s.f.Config.specialRegMask
    	s.allocatable &^= 1 << s.SPReg
    	s.allocatable &^= 1 << s.SBReg
    	if s.f.Config.hasGReg {
    		s.allocatable &^= 1 << s.GReg
    	}
    	if buildcfg.FramePointerEnabled && s.f.Config.FPReg >= 0 {
    		s.allocatable &^= 1 << uint(s.f.Config.FPReg)
    	}
    	if s.f.Config.LinkReg != -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
  3. pkg/registry/storage/csinode/strategy_test.go

    		expected *storage.CSINode
    	}{
    		{
    			"allow empty allocatable when it's not set",
    			emptyAllocatable,
    			emptyAllocatable,
    			emptyAllocatable,
    		},
    		{
    			"allow valid allocatable when it's already set",
    			valid,
    			differentAllocatable,
    			differentAllocatable,
    		},
    		{
    			"allow valid allocatable when it's not set",
    			emptyAllocatable,
    			valid,
    			valid,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 09:24:44 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. pkg/registry/core/service/portallocator/storage/storage_test.go

    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	// Allocate a port inside the valid port range
    	if err := storage.Allocate(30100); err != nil {
    		t.Fatal(err)
    	}
    
    	// Try to allocate the same port in the local bitmap
    	// The local bitmap stores the offset of the port
    	// offset = port - base (30100 - 30000 = 100)
    	ok, err := backing.Allocate(100)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/node_container_manager_linux.go

    )
    
    // createNodeAllocatableCgroups creates Node Allocatable Cgroup when CgroupsPerQOS flag is specified as true
    func (cm *containerManagerImpl) createNodeAllocatableCgroups() error {
    	nodeAllocatable := cm.internalCapacity
    	// Use Node Allocatable limits instead of capacity if the user requested enforcing node allocatable.
    	nc := cm.NodeConfig.NodeAllocatableConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. pkg/kubelet/eviction/memory_threshold_notifier_test.go

    func nodeSummary(available, workingSet, usage resource.Quantity, allocatable bool) *statsapi.Summary {
    	availableBytes := uint64(available.Value())
    	workingSetBytes := uint64(workingSet.Value())
    	usageBytes := uint64(usage.Value())
    	memoryStats := statsapi.MemoryStats{
    		AvailableBytes:  &availableBytes,
    		WorkingSetBytes: &workingSetBytes,
    		UsageBytes:      &usageBytes,
    	}
    	if allocatable {
    		return &statsapi.Summary{
    			Node: statsapi.NodeStats{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. pkg/kubelet/lifecycle/predicate_test.go

    						Requests: requests,
    						Limits:   limits,
    					},
    				},
    			},
    		},
    	}
    }
    
    func makeTestNode(allocatable v1.ResourceList) *v1.Node {
    	return &v1.Node{
    		Status: v1.NodeStatus{
    			Allocatable: allocatable,
    		},
    	}
    }
    
    var (
    	extendedResourceA = v1.ResourceName("example.com/aaa")
    	hugePageResourceA = v1helper.HugePageResourceName(resource.MustParse("2Mi"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/storage/storage_test.go

    	defer destroyFunc()
    	if err := storage.Allocate(netutils.ParseIPSloppy("192.168.1.2")); !strings.Contains(err.Error(), "cannot allocate resources of type serviceipallocations at this time") {
    		t.Fatal(err)
    	}
    }
    
    func TestErrors(t *testing.T) {
    	_, storage, _, _, destroyFunc := newStorage(t)
    	defer destroyFunc()
    	err := storage.Allocate(netutils.ParseIPSloppy("192.168.0.0"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/config/types.go

    	KubeReservedCgroup string
    	// This flag specifies the various Node Allocatable enforcements that Kubelet needs to perform.
    	// This flag accepts a list of options. Acceptable options are `pods`, `system-reserved` & `kube-reserved`.
    	// Refer to [Node Allocatable](https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/#node-allocatable) doc for more information.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 21:10:42 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  10. pkg/registry/core/service/portallocator/allocator_test.go

    	if err := r.Release(released); err != nil {
    		t.Fatal(err)
    	}
    
    	err = r.Allocate(1)
    	if _, ok := err.(*ErrNotInRange); !ok {
    		t.Fatal(err)
    	}
    
    	if err := r.Allocate(10001); err != ErrAllocated {
    		t.Fatal(err)
    	}
    
    	err = r.Allocate(20000)
    	if _, ok := err.(*ErrNotInRange); !ok {
    		t.Fatal(err)
    	}
    
    	err = r.Allocate(10201)
    	if _, ok := err.(*ErrNotInRange); !ok {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 14K bytes
    - Viewed (0)
Back to top