Merge pull request #91624 from hase1128/migrate-kubelet-infos

Migrate klog to klog.InfoS in pkg/kubelet
This commit is contained in:
Kubernetes Prow Robot 2020-06-04 13:52:27 -07:00 committed by GitHub
commit 860837c81e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ func (kl *Kubelet) GetPods() []*v1.Pod {
for _, p := range pods {
if kubelettypes.IsStaticPod(p) {
if status, ok := kl.statusManager.GetPodStatus(p.UID); ok {
klog.V(2).Infof("status for pod %v updated to %v", p.Name, status)
klog.V(2).InfoS("Pod status updated", "pod", klog.KObj(p), "status", status.Phase)
p.Status = status
}
}