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
533bc598
Commit
533bc598
authored
Feb 11, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21063 from gmarek/cleanup
Auto commit by PR queue bot
parents
09314f97
918ddbe5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
validate-cluster.sh
cluster/validate-cluster.sh
+1
-1
metrics_grabber_test.go
test/e2e/metrics_grabber_test.go
+3
-3
No files found.
cluster/validate-cluster.sh
View file @
533bc598
...
...
@@ -66,7 +66,7 @@ while true; do
if
((
attempt
>
100
))
;
then
echo
-e
"
${
color_red
}
Detected
${
ready
}
ready nodes, found
${
found
}
nodes out of expected
${
EXPECTED_NUM_NODES
}
. Your cluster may not be fully functional.
${
color_norm
}
"
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
get nodes
if
[
"
$((${
EXPECTED_NUM_NODES
}
-
${
found
}))
"
-gt
"
${
ALLOWED_NOTREADY_NODES
}
"
]
;
then
if
[
"
$((${
EXPECTED_NUM_NODES
}
-
${
ready
}))
"
-gt
"
${
ALLOWED_NOTREADY_NODES
}
"
]
;
then
exit
1
else
return_value
=
2
...
...
test/e2e/metrics_grabber_test.go
View file @
533bc598
...
...
@@ -102,7 +102,7 @@ var _ = Describe("MetricsGrabber", func() {
It
(
"should grab all metrics from a Kubelet."
,
func
()
{
// We run this test only on GCE, as for some reason it flakes in GKE #19468
if
providerIs
(
"gce"
)
{
By
(
"
Connecting p
roxying to Node through the API server"
)
By
(
"
P
roxying to Node through the API server"
)
nodes
:=
ListSchedulableNodesOrDie
(
c
)
Expect
(
nodes
.
Items
)
.
NotTo
(
BeEmpty
())
response
,
err
:=
grabber
.
GrabFromKubelet
(
nodes
.
Items
[
0
]
.
Name
)
...
...
@@ -112,7 +112,7 @@ var _ = Describe("MetricsGrabber", func() {
})
It
(
"should grab all metrics from a Scheduler."
,
func
()
{
By
(
"
Connecting p
roxying to Pod through the API server"
)
By
(
"
P
roxying to Pod through the API server"
)
// Check if master Node is registered
nodes
,
err
:=
c
.
Nodes
()
.
List
(
api
.
ListOptions
{})
expectNoError
(
err
)
...
...
@@ -136,7 +136,7 @@ var _ = Describe("MetricsGrabber", func() {
})
It
(
"should grab all metrics from a ControllerManager."
,
func
()
{
By
(
"
Connecting p
roxying to Pod through the API server"
)
By
(
"
P
roxying to Pod through the API server"
)
// Check if master Node is registered
nodes
,
err
:=
c
.
Nodes
()
.
List
(
api
.
ListOptions
{})
expectNoError
(
err
)
...
...
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