Merge pull request #104121 from dims/skip-node-e2e-test-for-recovering-from-ip-leak-with-docker

Skip node e2e test for recovering from ip leak with docker/ubuntu
This commit is contained in:
Kubernetes Prow Robot 2021-08-05 16:36:46 -07:00 committed by GitHub
commit 4d87be3ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,9 @@ package e2enode
import (
"context"
"fmt"
"io/ioutil"
"os/exec"
"strings"
"time"
"k8s.io/api/core/v1"
@ -80,6 +82,14 @@ var _ = SIGDescribe("Restart [Serial] [Slow] [Disruptive] [NodeFeature:Container
ginkgo.Context("Container Runtime", func() {
ginkgo.Context("Network", func() {
ginkgo.It("should recover from ip leak", func() {
if framework.TestContext.ContainerRuntime == "docker" {
bytes, err := ioutil.ReadFile("/etc/os-release")
if err != nil {
if strings.Contains(string(bytes), "ubuntu") {
ginkgo.Skip("Test fails with in-tree docker + ubuntu. Skipping test.")
}
}
}
pods := newTestPods(podCount, false, imageutils.GetPauseImageName(), "restart-container-runtime-test")
ginkgo.By(fmt.Sprintf("Trying to create %d pods on node", len(pods)))