Explicitly return from checkpoint update failures. SyncPod will retry

This commit is contained in:
vinay kulkarni 2023-03-17 18:00:04 +00:00
parent f66e8848ee
commit 358474b71d

View File

@ -2700,6 +2700,7 @@ func (kl *Kubelet) handlePodResourcesResize(pod *v1.Pod) {
if err := kl.statusManager.SetPodAllocation(updatedPod); err != nil {
//TODO(vinaykul,InPlacePodVerticalScaling): Can we recover from this in some way? Investigate
klog.ErrorS(err, "SetPodAllocation failed", "pod", klog.KObj(pod))
return
}
pod = updatedPod
}
@ -2708,6 +2709,7 @@ func (kl *Kubelet) handlePodResourcesResize(pod *v1.Pod) {
if err := kl.statusManager.SetPodResizeStatus(pod.UID, resizeStatus); err != nil {
//TODO(vinaykul,InPlacePodVerticalScaling): Can we recover from this in some way? Investigate
klog.ErrorS(err, "SetPodResizeStatus failed", "pod", klog.KObj(pod))
return
}
pod.Status.Resize = resizeStatus
}