Stop port forwarding from pause in net=host mode

This commit is contained in:
Abhishek Shah
2015-03-25 17:36:04 -07:00
parent 3bfca87492
commit cd5ed38250
2 changed files with 32 additions and 20 deletions

View File

@@ -3495,7 +3495,7 @@ func TestHostNetworkAllowed(t *testing.T) {
HostNetwork: true,
},
}
_, err := kubelet.createPodInfraContainer(pod)
err := kubelet.syncPod(pod, nil, container.Pod{})
if err != nil {
t.Errorf("expected pod infra creation to succeed: %v", err)
}
@@ -3524,7 +3524,7 @@ func TestHostNetworkDisallowed(t *testing.T) {
HostNetwork: true,
},
}
_, err := kubelet.createPodInfraContainer(pod)
err := kubelet.syncPod(pod, nil, container.Pod{})
if err == nil {
t.Errorf("expected pod infra creation to fail")
}