From 04aeb407932e1554c3d192402fd97138304b0bca Mon Sep 17 00:00:00 2001 From: Tim Allclair Date: Wed, 30 Oct 2024 17:09:37 -0700 Subject: [PATCH] Comment clarifying definition of non-resizable containers --- pkg/kubelet/kubelet_pods.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/kubelet_pods.go b/pkg/kubelet/kubelet_pods.go index ec9b9d35a13..3020ffbd322 100644 --- a/pkg/kubelet/kubelet_pods.go +++ b/pkg/kubelet/kubelet_pods.go @@ -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 }