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:
Kubernetes Prow Robot 2024-08-22 16:32:16 +01:00 committed by GitHub
commit 3ffc177677
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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