Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip CLOSE_WAIT e2e test if server is 1.4.5 #36404

Merged
merged 1 commit into from
Nov 8, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/e2e/kube_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (

"k8s.io/kubernetes/pkg/api"

"k8s.io/kubernetes/pkg/version"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/images/net/nat"

Expand All @@ -49,6 +50,10 @@ var _ = framework.KubeDescribe("Network", func() {
nodes := framework.GetReadySchedulableNodesOrDie(fr.Client)
ips := collectAddresses(nodes, api.NodeInternalIP)

// The matching change is not present in kube-proxy 1.4.5
// release which will causes this test to always fail.
framework.SkipUnlessServerVersionGTE(version.MustParse("v1.4.6"), fr.Client)

if len(nodes.Items) < 2 {
framework.Skipf(
"Test requires >= 2 Ready nodes, but there are only %v nodes",
Expand Down