Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
6529abe8
Unverified
Commit
6529abe8
authored
Aug 06, 2019
by
Jeff Knurek
Committed by
Matthew Fisher
Oct 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TEST: cleanup code
Signed-off-by:
Jeff Knurek
<
j.knurek@travelaudience.com
>
parent
b9460838
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
environment.go
pkg/releasetesting/environment.go
+6
-1
No files found.
pkg/releasetesting/environment.go
View file @
6529abe8
...
...
@@ -23,7 +23,7 @@ import (
"sync"
"time"
"k8s.io/api/core/v1"
v1
"k8s.io/api/core/v1"
"k8s.io/helm/pkg/proto/hapi/release"
"k8s.io/helm/pkg/proto/hapi/services"
...
...
@@ -127,6 +127,7 @@ func (env *Environment) DeleteTestPods(testManifests []string) {
}
}
// GetLogs collects the logs from the pods created in testManifests
func
(
env
*
Environment
)
GetLogs
(
testManifests
[]
string
)
{
for
_
,
testManifest
:=
range
testManifests
{
infos
,
err
:=
env
.
KubeClient
.
Build
(
env
.
Namespace
,
bytes
.
NewBufferString
(
testManifest
))
...
...
@@ -134,6 +135,10 @@ func (env *Environment) GetLogs(testManifests []string) {
env
.
streamError
(
err
.
Error
())
continue
}
if
len
(
infos
)
<
1
{
env
.
streamError
(
fmt
.
Sprint
(
"Pod manifest is invalid. Unable to obtain the logs"
))
continue
}
podName
:=
infos
[
0
]
.
Object
.
(
*
v1
.
Pod
)
.
Name
logs
,
err
:=
env
.
KubeClient
.
GetPodLogs
(
podName
,
env
.
Namespace
)
if
err
!=
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