Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetPodAllocation (0.38 sec)

  1. pkg/kubelet/kubelet.go

    					continue
    				}
    				// For new pod, checkpoint the resource values at which the Pod has been admitted
    				if err := kl.statusManager.SetPodAllocation(podCopy); err != nil {
    					//TODO(vinaykul,InPlacePodVerticalScaling): Can we recover from this in some way? Investigate
    					klog.ErrorS(err, "SetPodAllocation failed", "pod", klog.KObj(pod))
    				}
    			} else {
    				// Check if we can admit the pod; if not, reject it.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    			},
    		},
    	}
    	for _, tc := range tests {
    		if tc.existingPodAllocation != nil {
    			// when kubelet restarts, AllocatedResources has already existed before adding pod
    			err := kubelet.statusManager.SetPodAllocation(tc.existingPodAllocation)
    			if err != nil {
    				t.Fatalf("failed to set pod allocation: %v", err)
    			}
    		}
    		kubelet.HandlePodAdditions([]*v1.Pod{tc.pod})
    
    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. pkg/kubelet/kubelet_pods_test.go

    		tPod.Name = fmt.Sprintf("%s-%d", testPod.Name, idx)
    		for i := range tPod.Spec.Containers {
    			if tc.Resources != nil {
    				tPod.Spec.Containers[i].Resources = tc.Resources[i]
    			}
    			kubelet.statusManager.SetPodAllocation(tPod)
    			if tc.Resources != nil {
    				tPod.Status.ContainerStatuses[i].AllocatedResources = tc.Resources[i].Requests
    				testPodStatus.ContainerStatuses[i].Resources = &kubecontainer.ContainerResources{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
Back to top