mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Merge pull request #50768 from shyamjvs/fix-scheduler-metric-in-gke
Automatic merge from submit-queue (batch tested with PRs 50550, 50768) Don't SSH to master for metrics in case of GKE cc @kubernetes/sig-scalability-misc @crassirostris
This commit is contained in:
		| @@ -469,6 +469,10 @@ func getSchedulingLatency(c clientset.Interface) (*SchedulingLatency, error) { | ||||
| 		data = string(rawData) | ||||
| 	} else { | ||||
| 		// If master is not registered fall back to old method of using SSH. | ||||
| 		if TestContext.Provider == "gke" { | ||||
| 			Logf("Not grabbing scheduler metrics through master SSH: unsupported for gke") | ||||
| 			return nil, nil | ||||
| 		} | ||||
| 		cmd := "curl http://localhost:10251/metrics" | ||||
| 		sshResult, err := SSH(cmd, GetMasterHost()+":22", TestContext.Provider) | ||||
| 		if err != nil || sshResult.Code != 0 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Submit Queue
					Kubernetes Submit Queue