mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Comment clarifying definition of non-resizable containers
This commit is contained in:
parent
9d28cc0413
commit
04aeb40793
@ -2098,7 +2098,7 @@ func (kl *Kubelet) convertToAPIContainerStatuses(pod *v1.Pod, podStatus *kubecon
|
|||||||
// allocation used by the current sync loop.
|
// allocation used by the current sync loop.
|
||||||
alloc, found := kl.statusManager.GetContainerResourceAllocation(string(pod.UID), cName)
|
alloc, found := kl.statusManager.GetContainerResourceAllocation(string(pod.UID), cName)
|
||||||
if !found {
|
if !found {
|
||||||
// This case is expected for non-resizable containers.
|
// This case is expected for non-resizable containers (ephemeral & non-restartable init containers).
|
||||||
// Don't set status.Resources in this case.
|
// Don't set status.Resources in this case.
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user