mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-26 20:54:08 +00:00
Add missing PodSyncResult in KillPod
This commit is contained in:
@@ -1202,7 +1202,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