Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetPodAllocation (0.29 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)
Back to top