Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 210 for resourcesList (0.21 sec)

  1. plugin/pkg/admission/runtimeclass/admission_test.go

    			Image:     "foo:V" + strconv.Itoa(i),
    			Resources: resources,
    			Name:      "foo-" + strconv.Itoa(i),
    		})
    	}
    
    	if setOverhead {
    		pod.Spec.Overhead = core.ResourceList{
    			core.ResourceName(core.ResourceCPU):    resource.MustParse("100m"),
    			core.ResourceName(core.ResourceMemory): resource.MustParse("1"),
    		}
    	}
    	return pod
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 17 01:30:14 UTC 2022
    - 17.5K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    		newRequests         v1.ResourceList
    		expectedAllocations v1.ResourceList
    		expectedResize      v1.PodResizeStatus
    	}{
    		{
    			name:                "Request CPU and memory decrease - expect InProgress",
    			pod:                 testPod2,
    			newRequests:         v1.ResourceList{v1.ResourceCPU: cpu500m, v1.ResourceMemory: mem500M},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/client-go/applyconfigurations/core/v1/persistentvolumeclaimstatus.go

    	Capacity                         *v1.ResourceList                                   `json:"capacity,omitempty"`
    	Conditions                       []PersistentVolumeClaimConditionApplyConfiguration `json:"conditions,omitempty"`
    	AllocatedResources               *v1.ResourceList                                   `json:"allocatedResources,omitempty"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:26:35 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. pkg/registry/core/limitrange/storage/storage_test.go

    		},
    		Spec: api.LimitRangeSpec{
    			Limits: []api.LimitRangeItem{
    				{
    					Type: api.LimitTypePod,
    					Max: api.ResourceList{
    						api.ResourceCPU:    resource.MustParse("100"),
    						api.ResourceMemory: resource.MustParse("10000"),
    					},
    					Min: api.ResourceList{
    						api.ResourceCPU:    resource.MustParse("0"),
    						api.ResourceMemory: resource.MustParse("100"),
    					},
    				},
    			},
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 13 16:56:29 UTC 2019
    - 4.6K bytes
    - Viewed (0)
  5. pkg/kubelet/kuberuntime/kuberuntime_sandbox_linux_test.go

    							Requests: v1.ResourceList{
    								v1.ResourceMemory: resource.MustParse("128Mi"),
    								v1.ResourceCPU:    resource.MustParse("2"),
    							},
    							Limits: v1.ResourceList{
    								v1.ResourceMemory: resource.MustParse("256Mi"),
    								v1.ResourceCPU:    resource.MustParse("4"),
    							},
    						},
    					},
    				},
    				Overhead: v1.ResourceList{
    					v1.ResourceMemory: resource.MustParse("128Mi"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8K bytes
    - Viewed (0)
  6. cmd/signature-v2_test.go

    func TestResourceListSorting(t *testing.T) {
    	sortedResourceList := make([]string, len(resourceList))
    	copy(sortedResourceList, resourceList)
    	sort.Strings(sortedResourceList)
    	for i := 0; i < len(resourceList); i++ {
    		if resourceList[i] != sortedResourceList[i] {
    			t.Errorf("Expected resourceList[%d] = \"%s\", resourceList is not correctly sorted.", i, sortedResourceList[i])
    			break
    		}
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 8K bytes
    - Viewed (0)
  7. pkg/kubelet/status/state/state_checkpoint.go

    	checkpoint := NewPodResourceAllocationCheckpoint()
    
    	podAllocation := sc.cache.GetPodResourceAllocation()
    	for pod := range podAllocation {
    		checkpoint.AllocationEntries[pod] = make(map[string]v1.ResourceList)
    		for container, alloc := range podAllocation[pod] {
    			checkpoint.AllocationEntries[pod][container] = alloc
    		}
    	}
    
    	podResizeStatus := sc.cache.GetResizeStatus()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 00:16:44 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  8. pkg/scheduler/metrics/resources/resources.go

    	}
    	reuseReqs, reuseLimits := make(v1.ResourceList, 4), make(v1.ResourceList, 4)
    	for _, p := range pods {
    		reqs, limits, terminal := podRequestsAndLimitsByLifecycle(p, reuseReqs, reuseLimits)
    		if terminal {
    			// terminal pods are excluded from resource usage calculations
    			continue
    		}
    		for _, t := range []struct {
    			desc  resourceLifecycleDescriptors
    			total v1.ResourceList
    		}{
    			{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 23:15:53 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. pkg/kubelet/status/state/state_mem.go

    		prs[k] = v
    	}
    	return prs
    }
    
    func (s *stateMemory) SetContainerResourceAllocation(podUID string, containerName string, alloc v1.ResourceList) error {
    	s.Lock()
    	defer s.Unlock()
    
    	if _, ok := s.podAllocation[podUID]; !ok {
    		s.podAllocation[podUID] = make(map[string]v1.ResourceList)
    	}
    
    	s.podAllocation[podUID][containerName] = alloc
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 4K bytes
    - Viewed (0)
  10. pkg/kubelet/preemption/preemption_test.go

    			Requests: v1.ResourceList{
    				v1.ResourceCPU:    resource.MustParse("300m"),
    				v1.ResourceMemory: resource.MustParse("300Mi"),
    			},
    		}),
    		highRequestGuaranteed: getPodWithResources(highRequestGuaranteed, v1.ResourceRequirements{
    			Requests: v1.ResourceList{
    				v1.ResourceCPU:    resource.MustParse("300m"),
    				v1.ResourceMemory: resource.MustParse("300Mi"),
    			},
    			Limits: v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 10:04:08 UTC 2022
    - 19.2K bytes
    - Viewed (0)
Back to top