Skip to content

Commit a3b97b1

Browse files
committed
Fix the localhost nodeport metrics test to not fail under non-kube-proxy
If the cluster is using a non-kube-proxy service proxy, the `curl` will presumably fail; this should not be considered a hard failure.
1 parent 6ca629d commit a3b97b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/network/kube_proxy.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ var _ = common.SIGDescribe("KubeProxy", func() {
284284

285285
// get proxyMode
286286
stdout, err := e2epodoutput.RunHostCmd(fr.Namespace.Name, hostExecPodName, fmt.Sprintf("curl --silent 127.0.0.1:%d/proxyMode", ports.ProxyStatusPort))
287-
framework.ExpectNoError(err)
287+
if err != nil {
288+
e2eskipper.Skipf("kube-proxy is not running or could not determine kube-proxy mode (%v)", err)
289+
}
288290
proxyMode := strings.TrimSpace(stdout)
289291

290292
// get value of route_localnet

0 commit comments

Comments
 (0)