Log pod name when pod status cannot be queried

This commit is contained in:
Ted Yu 2019-05-01 15:01:54 -07:00 committed by Ted Yu
parent 66ce52578a
commit 3fc16a7e82

View File

@ -228,7 +228,7 @@ func (m *manager) reconcileState() (success []reconciledContainer, failure []rec
status, ok := m.podStatusProvider.GetPodStatus(pod.UID)
for _, container := range allContainers {
if !ok {
klog.Warningf("[cpumanager] reconcileState: skipping pod; status not found (pod: %s, container: %s)", pod.Name, container.Name)
klog.Warningf("[cpumanager] reconcileState: skipping pod; status not found (pod: %s)", pod.Name)
failure = append(failure, reconciledContainer{pod.Name, container.Name, ""})
break
}