Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 244 for allocable (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/scheduler/framework/plugins/noderesources/fit.go

    		insufficientResources = append(insufficientResources, InsufficientResource{
    			ResourceName: v1.ResourceMemory,
    			Reason:       "Insufficient memory",
    			Requested:    podRequest.Memory,
    			Used:         nodeInfo.Requested.Memory,
    			Capacity:     nodeInfo.Allocatable.Memory,
    		})
    	}
    	if podRequest.EphemeralStorage > 0 &&
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet_node_status.go

    			existingNode.Status.Capacity = make(map[v1.ResourceName]resource.Quantity)
    		}
    	}
    
    	if existingNode.Status.Allocatable == nil {
    		if initialNode.Status.Allocatable != nil {
    			existingNode.Status.Allocatable = initialNode.Status.Allocatable.DeepCopy()
    			requiresUpdate = true
    		} else {
    			existingNode.Status.Allocatable = make(map[v1.ResourceName]resource.Quantity)
    		}
    	}
    	return requiresUpdate
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/v1.30.0/storage.k8s.io.v1.CSINode.yaml

        controller: true
        kind: kindValue
        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    spec:
      drivers:
      - allocatable:
          count: 1
        name: nameValue
        nodeID: nodeIDValue
        topologyKeys:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 991 bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/v1.30.0/storage.k8s.io.v1beta1.CSINode.json

          }
        ]
      },
      "spec": {
        "drivers": [
          {
            "name": "nameValue",
            "nodeID": "nodeIDValue",
            "topologyKeys": [
              "topologyKeysValue"
            ],
            "allocatable": {
              "count": 1
            }
          }
        ]
      }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.30.0/storage.k8s.io.v1beta1.CSINode.yaml

        controller: true
        kind: kindValue
        name: nameValue
        uid: uidValue
      resourceVersion: resourceVersionValue
      selfLink: selfLinkValue
      uid: uidValue
    spec:
      drivers:
      - allocatable:
          count: 1
        name: nameValue
        nodeID: nodeIDValue
        topologyKeys:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 996 bytes
    - Viewed (0)
  10. pkg/kubelet/cm/qos_container_manager_linux.go

    	resources := m.getNodeAllocatable()
    	allocatableResource, ok := resources[v1.ResourceMemory]
    	if !ok {
    		klog.V(2).InfoS("Allocatable memory value could not be determined, not setting QoS memory limits")
    		return
    	}
    	allocatable := allocatableResource.Value()
    	if allocatable == 0 {
    		klog.V(2).InfoS("Allocatable memory reported as 0, might be in standalone mode, not setting QoS memory limits")
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 20:42:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top