Skip to content

Commit

Permalink
UPSTREAM: 126846: Fix the localhost nodeport metrics test to not fail…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
danwinship authored and atiratree committed Oct 1, 2024
1 parent 3a4fe5d commit 64ef215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/network/kube_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ var _ = common.SIGDescribe("KubeProxy", func() {

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

// get value of route_localnet
Expand Down

0 comments on commit 64ef215

Please sign in to comment.