Log pod name when pod status cannot be queried

k3s-v1.15.3
Ted Yu 2019-05-01 15:01:54 -07:00 committed by Ted Yu
parent 66ce52578a
commit 3fc16a7e82
1 changed files with 1 additions and 1 deletions

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
}