mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 04:52:08 +00:00
Add missing PodSyncResult in KillPod
This commit is contained in:
parent
f0620a5efd
commit
b7292f6672
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user