Merge pull request #20954 from Random-Liu/add-missing-pod-sync-result
Auto commit by PR queue bot
This commit is contained in:
@@ -1216,7 +1216,9 @@ func (dm *DockerManager) killPodWithSyncResult(pod *api.Pod, runningPod kubecont
|
|||||||
if networkContainer != nil {
|
if networkContainer != nil {
|
||||||
ins, err := dm.client.InspectContainer(networkContainer.ID.ID)
|
ins, err := dm.client.InspectContainer(networkContainer.ID.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Error inspecting container %v: %v", networkContainer.ID.ID, err)
|
err = fmt.Errorf("Error inspecting container %v: %v", networkContainer.ID.ID, err)
|
||||||
|
glog.Error(err)
|
||||||
|
result.Fail(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if ins.HostConfig != nil && ins.HostConfig.NetworkMode != namespaceModeHost {
|
if ins.HostConfig != nil && ins.HostConfig.NetworkMode != namespaceModeHost {
|
||||||
|
Reference in New Issue
Block a user