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
50f689f5
Commit
50f689f5
authored
Oct 13, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Oct 13, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #34128 from spxtr/nodeinfo
Automatic merge from submit-queue Do a kubectl get nodes after turning up the e2e cluster.
https://github.com/kubernetes/test-infra/issues/366
parents
1c65d1df
d5e0b1cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
e2e.go
hack/e2e.go
+14
-0
No files found.
hack/e2e.go
View file @
50f689f5
...
@@ -236,6 +236,20 @@ func run(deploy deployer) error {
...
@@ -236,6 +236,20 @@ func run(deploy deployer) error {
if
err
:=
xmlWrap
(
"Up"
,
deploy
.
Up
);
err
!=
nil
{
if
err
:=
xmlWrap
(
"Up"
,
deploy
.
Up
);
err
!=
nil
{
return
fmt
.
Errorf
(
"starting e2e cluster: %s"
,
err
)
return
fmt
.
Errorf
(
"starting e2e cluster: %s"
,
err
)
}
}
if
*
dump
!=
""
{
cmd
:=
exec
.
Command
(
"./cluster/kubectl.sh"
,
"--match-server-version=false"
,
"get"
,
"nodes"
,
"-oyaml"
)
b
,
err
:=
cmd
.
CombinedOutput
()
if
*
verbose
{
log
.
Printf
(
"kubectl get nodes:
\n
%s"
,
string
(
b
))
}
if
err
==
nil
{
if
err
:=
ioutil
.
WriteFile
(
filepath
.
Join
(
*
dump
,
"nodes.yaml"
),
b
,
0644
);
err
!=
nil
{
errs
=
appendError
(
errs
,
fmt
.
Errorf
(
"error writing nodes.yaml: %v"
,
err
))
}
}
else
{
errs
=
appendError
(
errs
,
fmt
.
Errorf
(
"error running get nodes: %v"
,
err
))
}
}
}
}
if
*
checkLeakedResources
{
if
*
checkLeakedResources
{
...
...
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