mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Explicitly return from checkpoint update failures. SyncPod will retry
This commit is contained in:
parent
f66e8848ee
commit
358474b71d
@ -2700,6 +2700,7 @@ func (kl *Kubelet) handlePodResourcesResize(pod *v1.Pod) {
|
|||||||
if err := kl.statusManager.SetPodAllocation(updatedPod); err != nil {
|
if err := kl.statusManager.SetPodAllocation(updatedPod); err != nil {
|
||||||
//TODO(vinaykul,InPlacePodVerticalScaling): Can we recover from this in some way? Investigate
|
//TODO(vinaykul,InPlacePodVerticalScaling): Can we recover from this in some way? Investigate
|
||||||
klog.ErrorS(err, "SetPodAllocation failed", "pod", klog.KObj(pod))
|
klog.ErrorS(err, "SetPodAllocation failed", "pod", klog.KObj(pod))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
pod = updatedPod
|
pod = updatedPod
|
||||||
}
|
}
|
||||||
@ -2708,6 +2709,7 @@ func (kl *Kubelet) handlePodResourcesResize(pod *v1.Pod) {
|
|||||||
if err := kl.statusManager.SetPodResizeStatus(pod.UID, resizeStatus); err != nil {
|
if err := kl.statusManager.SetPodResizeStatus(pod.UID, resizeStatus); err != nil {
|
||||||
//TODO(vinaykul,InPlacePodVerticalScaling): Can we recover from this in some way? Investigate
|
//TODO(vinaykul,InPlacePodVerticalScaling): Can we recover from this in some way? Investigate
|
||||||
klog.ErrorS(err, "SetPodResizeStatus failed", "pod", klog.KObj(pod))
|
klog.ErrorS(err, "SetPodResizeStatus failed", "pod", klog.KObj(pod))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
pod.Status.Resize = resizeStatus
|
pod.Status.Resize = resizeStatus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user