mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 08:09:58 +00:00
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.
This commit is contained in:
parent
6ca629d46b
commit
a3b97b118b
@ -284,7 +284,9 @@ var _ = common.SIGDescribe("KubeProxy", func() {
|
|||||||
|
|
||||||
// get proxyMode
|
// get proxyMode
|
||||||
stdout, err := e2epodoutput.RunHostCmd(fr.Namespace.Name, hostExecPodName, fmt.Sprintf("curl --silent 127.0.0.1:%d/proxyMode", ports.ProxyStatusPort))
|
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)
|
proxyMode := strings.TrimSpace(stdout)
|
||||||
|
|
||||||
// get value of route_localnet
|
// get value of route_localnet
|
||||||
|
Loading…
Reference in New Issue
Block a user