Skip to content

Commit 0687ae5

Browse files
committed
[kubelet] Cleanup incorrect log about static pod status change
1 parent 79fee52 commit 0687ae5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/kubelet/kubelet_getters.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ func (kl *Kubelet) getPodResourcesDir() string {
210210
// pods.
211211
func (kl *Kubelet) GetPods() []*v1.Pod {
212212
pods := kl.podManager.GetPods()
213-
// a kubelet running without apiserver requires an additional
214-
// update of the static pod status. See #57106
215213
for i, p := range pods {
214+
// Pod cache does not get updated status for static pods.
215+
// TODO(tallclair): Most callers of GetPods() do not need pod status. We should either parameterize this,
216+
// or move the status injection to only the callers that do need it (maybe just the /pods http handler?).
216217
if kubelettypes.IsStaticPod(p) {
217218
if status, ok := kl.statusManager.GetPodStatus(p.UID); ok {
218-
klog.V(2).InfoS("Pod status updated", "pod", klog.KObj(p), "status", status.Phase)
219219
// do not mutate the cache
220220
p = p.DeepCopy()
221221
p.Status = status

0 commit comments

Comments
 (0)