Merge pull request #23050 from tobad357/cni-pod-infinite-restart

Fix for issue #22932 infinite pod restarts with CNI
This commit is contained in:
Eric Paris 2016-03-16 11:23:52 -05:00
commit b1cd74bd34

View File

@ -807,7 +807,7 @@ func (dm *DockerManager) podInfraContainerChanged(pod *api.Pod, podInfraContaine
glog.V(4).Infof("host: %v, %v", pod.Spec.SecurityContext.HostNetwork, networkMode)
return true, nil
}
} else {
} else if dm.networkPlugin.Name() != "cni" && dm.networkPlugin.Name() != "kubenet" {
// Docker only exports ports from the pod infra container. Let's
// collect all of the relevant ports and export them.
for _, container := range pod.Spec.Containers {