Change status to status.Phase for removing unnecessary status information

This commit is contained in:
Jin Hase 2020-06-02 18:07:37 +09:00
parent 573e5c6b2f
commit e6c1935355

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).InfoS("Pod status updated", "pod", klog.KObj(p), "status", status)
klog.V(2).InfoS("Pod status updated", "pod", klog.KObj(p), "status", status.Phase)
p.Status = status
}
}