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
d5e0b1cf
Commit
d5e0b1cf
authored
Oct 05, 2016
by
Joe Finney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump node info after cluster up.
parent
617fa912
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 @
d5e0b1cf
...
...
@@ -211,6 +211,20 @@ func run(deploy deployer) error {
if
err
:=
xmlWrap
(
"Up"
,
deploy
.
Up
);
err
!=
nil
{
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
{
...
...
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