Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
bb23e0ae
Commit
bb23e0ae
authored
Jan 22, 2019
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid master ssh in eks
parent
5c4b536f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
metrics_util.go
test/e2e/framework/metrics_util.go
+4
-4
No files found.
test/e2e/framework/metrics_util.go
View file @
bb23e0ae
...
@@ -293,8 +293,8 @@ func NewEtcdMetricsCollector() *EtcdMetricsCollector {
...
@@ -293,8 +293,8 @@ func NewEtcdMetricsCollector() *EtcdMetricsCollector {
func
getEtcdMetrics
()
([]
*
model
.
Sample
,
error
)
{
func
getEtcdMetrics
()
([]
*
model
.
Sample
,
error
)
{
// Etcd is only exposed on localhost level. We are using ssh method
// Etcd is only exposed on localhost level. We are using ssh method
if
TestContext
.
Provider
==
"gke"
{
if
TestContext
.
Provider
==
"gke"
||
TestContext
.
Provider
==
"eks"
{
Logf
(
"Not grabbing
scheduler metrics through master SSH: unsupported for gke"
)
Logf
(
"Not grabbing
etcd metrics through master SSH: unsupported for %s"
,
TestContext
.
Provider
)
return
nil
,
nil
return
nil
,
nil
}
}
...
@@ -620,8 +620,8 @@ func sendRestRequestToScheduler(c clientset.Interface, op string) (string, error
...
@@ -620,8 +620,8 @@ func sendRestRequestToScheduler(c clientset.Interface, op string) (string, error
responseText
=
string
(
body
)
responseText
=
string
(
body
)
}
else
{
}
else
{
// If master is not registered fall back to old method of using SSH.
// If master is not registered fall back to old method of using SSH.
if
TestContext
.
Provider
==
"gke"
{
if
TestContext
.
Provider
==
"gke"
||
TestContext
.
Provider
==
"eks"
{
Logf
(
"Not grabbing scheduler metrics through master SSH: unsupported for
gke"
)
Logf
(
"Not grabbing scheduler metrics through master SSH: unsupported for
%s"
,
TestContext
.
Provider
)
return
""
,
nil
return
""
,
nil
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment