mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user