Skip to content

Commit b67b0ad

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request kubernetes#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
2 parents a4acc38 + a938c00 commit b67b0ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/e2e/framework/metrics_util.go

+4
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,10 @@ func getSchedulingLatency(c clientset.Interface) (*SchedulingLatency, error) {
469469
data = string(rawData)
470470
} else {
471471
// If master is not registered fall back to old method of using SSH.
472+
if TestContext.Provider == "gke" {
473+
Logf("Not grabbing scheduler metrics through master SSH: unsupported for gke")
474+
return nil, nil
475+
}
472476
cmd := "curl http://localhost:10251/metrics"
473477
sshResult, err := SSH(cmd, GetMasterHost()+":22", TestContext.Provider)
474478
if err != nil || sshResult.Code != 0 {

0 commit comments

Comments
 (0)