mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 23:15:14 +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.
|
||||
alloc, found := kl.statusManager.GetContainerResourceAllocation(string(pod.UID), cName)
|
||||
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.
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user