Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
6529abe8
Unverified
Commit
6529abe8
authored
5 years ago
by
Jeff Knurek
Committed by
Matthew Fisher
5 years ago
Browse files
Options
Download
Patches
Plain Diff
TEST: cleanup code
Signed-off-by:
Jeff Knurek
<
j.knurek@travelaudience.com
>
parent
b9460838
release-2.17
dev-v2
release-2.15
release-2.16
v2.17.0
v2.17.0-rc.1
v2.16.12
v2.16.11
v2.16.10
v2.16.9
v2.16.8
v2.16.7
v2.16.6
v2.16.5
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.16.0
v2.16.0-rc.2
v2.16.0-rc.1
v2.15.2
v2.15.1
v2.15.0
v2.15.0-rc.2
v2.15.0-rc.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/releasetesting/environment.go
+6
-1
pkg/releasetesting/environment.go
with
6 additions
and
1 deletion
+6
-1
pkg/releasetesting/environment.go
+
6
−
1
View file @
6529abe8
...
@@ -23,7 +23,7 @@ import (
...
@@ -23,7 +23,7 @@ import (
"sync"
"sync"
"time"
"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/release"
"k8s.io/helm/pkg/proto/hapi/services"
"k8s.io/helm/pkg/proto/hapi/services"
...
@@ -127,6 +127,7 @@ func (env *Environment) DeleteTestPods(testManifests []string) {
...
@@ -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
)
{
func
(
env
*
Environment
)
GetLogs
(
testManifests
[]
string
)
{
for
_
,
testManifest
:=
range
testManifests
{
for
_
,
testManifest
:=
range
testManifests
{
infos
,
err
:=
env
.
KubeClient
.
Build
(
env
.
Namespace
,
bytes
.
NewBufferString
(
testManifest
))
infos
,
err
:=
env
.
KubeClient
.
Build
(
env
.
Namespace
,
bytes
.
NewBufferString
(
testManifest
))
...
@@ -134,6 +135,10 @@ func (env *Environment) GetLogs(testManifests []string) {
...
@@ -134,6 +135,10 @@ func (env *Environment) GetLogs(testManifests []string) {
env
.
streamError
(
err
.
Error
())
env
.
streamError
(
err
.
Error
())
continue
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
podName
:=
infos
[
0
]
.
Object
.
(
*
v1
.
Pod
)
.
Name
logs
,
err
:=
env
.
KubeClient
.
GetPodLogs
(
podName
,
env
.
Namespace
)
logs
,
err
:=
env
.
KubeClient
.
GetPodLogs
(
podName
,
env
.
Namespace
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets