mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
Merge pull request #126846 from danwinship/fix-e2e-kube-proxy-detection
Fix the localhost nodeport metrics test to not fail under non-kube-proxy
This commit is contained in:
commit
3ffc177677
@ -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