mirror of https://github.com/k3s-io/k3s
Add missing PodSyncResult in KillPod
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