Skip to content

Commit 9c9af69

Browse files
authored
Merge pull request kubernetes#100573 from pacoxu/upgrade-corefile-migration
Update the kubelet log pod status to level 6 as it is so big
2 parents 30a261d + 54606db commit 9c9af69

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: pkg/kubelet/pleg/generic.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,11 @@ func (g *GenericPLEG) updateCache(pod *kubecontainer.Pod, pid types.UID) error {
383383
// GetPodStatus(pod *kubecontainer.Pod) so that Docker can avoid listing
384384
// all containers again.
385385
status, err := g.runtime.GetPodStatus(pod.ID, pod.Name, pod.Namespace)
386-
klog.V(4).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name), "podStatus", status)
386+
if klog.V(6).Enabled() {
387+
klog.V(6).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name), "podStatus", status)
388+
} else {
389+
klog.V(4).ErrorS(err, "PLEG: Write status", "pod", klog.KRef(pod.Namespace, pod.Name))
390+
}
387391
if err == nil {
388392
// Preserve the pod IP across cache updates if the new IP is empty.
389393
// When a pod is torn down, kubelet may race with PLEG and retrieve

0 commit comments

Comments
 (0)