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
024f168b
Unverified
Commit
024f168b
authored
Oct 10, 2019
by
Matthew Fisher
Committed by
GitHub
Oct 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6612 from bacongobbler/rebase-6167
feat(test): add `--logs` to `helm test`
parents
66e0c0b4
9b9dcebe
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
233 additions
and
117 deletions
+233
-117
tiller.proto
_proto/hapi/services/tiller.proto
+2
-0
release_testing.go
cmd/helm/release_testing.go
+3
-0
helm_test.md
docs/helm/helm_test.md
+2
-1
option.go
pkg/helm/option.go
+7
-0
client.go
pkg/kube/client.go
+16
-2
tiller.pb.go
pkg/proto/hapi/services/tiller.pb.go
+123
-113
environment.go
pkg/releasetesting/environment.go
+34
-1
environment_test.go
pkg/releasetesting/environment_test.go
+28
-0
environment.go
pkg/tiller/environment/environment.go
+7
-0
environment_test.go
pkg/tiller/environment/environment_test.go
+4
-0
release_server_test.go
pkg/tiller/release_server_test.go
+3
-0
release_testing.go
pkg/tiller/release_testing.go
+4
-0
No files found.
_proto/hapi/services/tiller.proto
View file @
024f168b
...
...
@@ -352,6 +352,8 @@ message TestReleaseRequest {
bool
parallel
=
4
;
// maximum number of test pods to run in parallel
uint32
max_parallel
=
5
;
// logs specifies whether or not to dump the logs from the test pods
bool
logs
=
6
;
}
// TestReleaseResponse represents a message from executing a test
...
...
cmd/helm/release_testing.go
View file @
024f168b
...
...
@@ -41,6 +41,7 @@ type releaseTestCmd struct {
cleanup
bool
parallel
bool
maxParallel
uint32
logs
bool
}
func
newReleaseTestCmd
(
c
helm
.
Interface
,
out
io
.
Writer
)
*
cobra
.
Command
{
...
...
@@ -71,6 +72,7 @@ func newReleaseTestCmd(c helm.Interface, out io.Writer) *cobra.Command {
f
.
BoolVar
(
&
rlsTest
.
cleanup
,
"cleanup"
,
false
,
"Delete test pods upon completion"
)
f
.
BoolVar
(
&
rlsTest
.
parallel
,
"parallel"
,
false
,
"Run test pods in parallel"
)
f
.
Uint32Var
(
&
rlsTest
.
maxParallel
,
"max"
,
20
,
"Maximum number of test pods to run in parallel"
)
f
.
BoolVar
(
&
rlsTest
.
logs
,
"logs"
,
false
,
"Dump the logs from test pods (this runs after all tests are complete, but before any cleanup"
)
// set defaults from environment
settings
.
InitTLS
(
f
)
...
...
@@ -85,6 +87,7 @@ func (t *releaseTestCmd) run() (err error) {
helm
.
ReleaseTestCleanup
(
t
.
cleanup
),
helm
.
ReleaseTestParallel
(
t
.
parallel
),
helm
.
ReleaseTestMaxParallel
(
t
.
maxParallel
),
helm
.
ReleaseTestLogs
(
t
.
logs
),
)
testErr
:=
&
testErr
{}
...
...
docs/helm/helm_test.md
View file @
024f168b
...
...
@@ -20,6 +20,7 @@ helm test [RELEASE] [flags]
```
--cleanup Delete test pods upon completion
-h, --help help for test
--logs Dump the logs from test pods (this runs after all tests are complete, but before any cleanup
--max uint32 Maximum number of test pods to run in parallel (default 20)
--parallel Run test pods in parallel
--timeout int Time in seconds to wait for any individual Kubernetes operation (like Jobs for hooks) (default 300)
...
...
@@ -47,4 +48,4 @@ helm test [RELEASE] [flags]
*
[
helm
](
helm.md
)
- The Helm package manager for Kubernetes.
###### Auto generated by spf13/cobra on
25-Jul
-2019
###### Auto generated by spf13/cobra on
8-Oct
-2019
pkg/helm/option.go
View file @
024f168b
...
...
@@ -241,6 +241,13 @@ func ReleaseTestMaxParallel(max uint32) ReleaseTestOption {
}
}
// ReleaseTestLogs is a boolean value representing whether to dump the logs from test pods
func
ReleaseTestLogs
(
logs
bool
)
ReleaseTestOption
{
return
func
(
opts
*
options
)
{
opts
.
testReq
.
Logs
=
logs
}
}
// RollbackTimeout specifies the number of seconds before kubernetes calls timeout
func
RollbackTimeout
(
timeout
int64
)
RollbackOption
{
return
func
(
opts
*
options
)
{
...
...
pkg/kube/client.go
View file @
024f168b
...
...
@@ -31,7 +31,7 @@ import (
"k8s.io/apimachinery/pkg/api/meta"
"github.com/evanphx/json-patch"
jsonpatch
"github.com/evanphx/json-patch"
appsv1
"k8s.io/api/apps/v1"
appsv1beta1
"k8s.io/api/apps/v1beta1"
appsv1beta2
"k8s.io/api/apps/v1beta2"
...
...
@@ -935,7 +935,7 @@ func (c *Client) WaitAndGetCompletedPodPhase(namespace string, reader io.Reader,
}
func
(
c
*
Client
)
watchPodUntilComplete
(
timeout
time
.
Duration
,
info
*
resource
.
Info
)
error
{
lw
:=
cachetools
.
NewListWatchFromClient
(
info
.
Client
,
info
.
Mapping
.
Resource
.
Resource
,
info
.
Namespace
,
fields
.
Everything
(
))
lw
:=
cachetools
.
NewListWatchFromClient
(
info
.
Client
,
info
.
Mapping
.
Resource
.
Resource
,
info
.
Namespace
,
fields
.
ParseSelectorOrDie
(
fmt
.
Sprintf
(
"metadata.name=%s"
,
info
.
Name
)
))
c
.
Log
(
"Watching pod %s for completion with timeout of %v"
,
info
.
Name
,
timeout
)
ctx
,
cancel
:=
watchtools
.
ContextWithOptionalTimeout
(
context
.
Background
(),
timeout
)
...
...
@@ -947,6 +947,20 @@ func (c *Client) watchPodUntilComplete(timeout time.Duration, info *resource.Inf
return
err
}
// GetPodLogs takes pod name and namespace and returns the current logs (streaming is NOT enabled).
func
(
c
*
Client
)
GetPodLogs
(
name
,
ns
string
)
(
io
.
ReadCloser
,
error
)
{
client
,
err
:=
c
.
KubernetesClientSet
()
if
err
!=
nil
{
return
nil
,
err
}
req
:=
client
.
CoreV1
()
.
Pods
(
ns
)
.
GetLogs
(
name
,
&
v1
.
PodLogOptions
{})
logReader
,
err
:=
req
.
Stream
()
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"error in opening log stream, got: %s"
,
err
)
}
return
logReader
,
nil
}
func
isPodComplete
(
event
watch
.
Event
)
(
bool
,
error
)
{
o
,
ok
:=
event
.
Object
.
(
*
v1
.
Pod
)
if
!
ok
{
...
...
pkg/proto/hapi/services/tiller.pb.go
View file @
024f168b
...
...
@@ -53,7 +53,7 @@ func (x ListSort_SortBy) String() string {
return
proto
.
EnumName
(
ListSort_SortBy_name
,
int32
(
x
))
}
func
(
ListSort_SortBy
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
1
,
0
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
1
,
0
}
}
// SortOrder defines sort orders to augment sorting operations.
...
...
@@ -77,7 +77,7 @@ func (x ListSort_SortOrder) String() string {
return
proto
.
EnumName
(
ListSort_SortOrder_name
,
int32
(
x
))
}
func
(
ListSort_SortOrder
)
EnumDescriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
1
,
1
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
1
,
1
}
}
// ListReleasesRequest requests a list of releases.
...
...
@@ -114,7 +114,7 @@ func (m *ListReleasesRequest) Reset() { *m = ListReleasesRequest{} }
func
(
m
*
ListReleasesRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ListReleasesRequest
)
ProtoMessage
()
{}
func
(
*
ListReleasesRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
0
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
0
}
}
func
(
m
*
ListReleasesRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ListReleasesRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -194,7 +194,7 @@ func (m *ListSort) Reset() { *m = ListSort{} }
func
(
m
*
ListSort
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ListSort
)
ProtoMessage
()
{}
func
(
*
ListSort
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
1
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
1
}
}
func
(
m
*
ListSort
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ListSort
.
Unmarshal
(
m
,
b
)
...
...
@@ -234,7 +234,7 @@ func (m *ListReleasesResponse) Reset() { *m = ListReleasesResponse{} }
func
(
m
*
ListReleasesResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
ListReleasesResponse
)
ProtoMessage
()
{}
func
(
*
ListReleasesResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
2
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
2
}
}
func
(
m
*
ListReleasesResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_ListReleasesResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -297,7 +297,7 @@ func (m *GetReleaseStatusRequest) Reset() { *m = GetReleaseStatusRequest
func
(
m
*
GetReleaseStatusRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetReleaseStatusRequest
)
ProtoMessage
()
{}
func
(
*
GetReleaseStatusRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
3
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
3
}
}
func
(
m
*
GetReleaseStatusRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetReleaseStatusRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -348,7 +348,7 @@ func (m *GetReleaseStatusResponse) Reset() { *m = GetReleaseStatusRespon
func
(
m
*
GetReleaseStatusResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetReleaseStatusResponse
)
ProtoMessage
()
{}
func
(
*
GetReleaseStatusResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
4
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
4
}
}
func
(
m
*
GetReleaseStatusResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetReleaseStatusResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -404,7 +404,7 @@ func (m *GetReleaseContentRequest) Reset() { *m = GetReleaseContentReque
func
(
m
*
GetReleaseContentRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetReleaseContentRequest
)
ProtoMessage
()
{}
func
(
*
GetReleaseContentRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
5
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
5
}
}
func
(
m
*
GetReleaseContentRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetReleaseContentRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -451,7 +451,7 @@ func (m *GetReleaseContentResponse) Reset() { *m = GetReleaseContentResp
func
(
m
*
GetReleaseContentResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetReleaseContentResponse
)
ProtoMessage
()
{}
func
(
*
GetReleaseContentResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
6
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
6
}
}
func
(
m
*
GetReleaseContentResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetReleaseContentResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -519,7 +519,7 @@ func (m *UpdateReleaseRequest) Reset() { *m = UpdateReleaseRequest{} }
func
(
m
*
UpdateReleaseRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
UpdateReleaseRequest
)
ProtoMessage
()
{}
func
(
*
UpdateReleaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
7
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
7
}
}
func
(
m
*
UpdateReleaseRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_UpdateReleaseRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -649,7 +649,7 @@ func (m *UpdateReleaseResponse) Reset() { *m = UpdateReleaseResponse{} }
func
(
m
*
UpdateReleaseResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
UpdateReleaseResponse
)
ProtoMessage
()
{}
func
(
*
UpdateReleaseResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
8
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
8
}
}
func
(
m
*
UpdateReleaseResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_UpdateReleaseResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -707,7 +707,7 @@ func (m *RollbackReleaseRequest) Reset() { *m = RollbackReleaseRequest{}
func
(
m
*
RollbackReleaseRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RollbackReleaseRequest
)
ProtoMessage
()
{}
func
(
*
RollbackReleaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
9
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
9
}
}
func
(
m
*
RollbackReleaseRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RollbackReleaseRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -809,7 +809,7 @@ func (m *RollbackReleaseResponse) Reset() { *m = RollbackReleaseResponse
func
(
m
*
RollbackReleaseResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
RollbackReleaseResponse
)
ProtoMessage
()
{}
func
(
*
RollbackReleaseResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
10
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
10
}
}
func
(
m
*
RollbackReleaseResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_RollbackReleaseResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -874,7 +874,7 @@ func (m *InstallReleaseRequest) Reset() { *m = InstallReleaseRequest{} }
func
(
m
*
InstallReleaseRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
InstallReleaseRequest
)
ProtoMessage
()
{}
func
(
*
InstallReleaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
11
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
11
}
}
func
(
m
*
InstallReleaseRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_InstallReleaseRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -990,7 +990,7 @@ func (m *InstallReleaseResponse) Reset() { *m = InstallReleaseResponse{}
func
(
m
*
InstallReleaseResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
InstallReleaseResponse
)
ProtoMessage
()
{}
func
(
*
InstallReleaseResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
12
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
12
}
}
func
(
m
*
InstallReleaseResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_InstallReleaseResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -1038,7 +1038,7 @@ func (m *UninstallReleaseRequest) Reset() { *m = UninstallReleaseRequest
func
(
m
*
UninstallReleaseRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
UninstallReleaseRequest
)
ProtoMessage
()
{}
func
(
*
UninstallReleaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
13
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
13
}
}
func
(
m
*
UninstallReleaseRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_UninstallReleaseRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -1108,7 +1108,7 @@ func (m *UninstallReleaseResponse) Reset() { *m = UninstallReleaseRespon
func
(
m
*
UninstallReleaseResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
UninstallReleaseResponse
)
ProtoMessage
()
{}
func
(
*
UninstallReleaseResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
14
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
14
}
}
func
(
m
*
UninstallReleaseResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_UninstallReleaseResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -1153,7 +1153,7 @@ func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} }
func
(
m
*
GetVersionRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetVersionRequest
)
ProtoMessage
()
{}
func
(
*
GetVersionRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
15
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
15
}
}
func
(
m
*
GetVersionRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetVersionRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -1184,7 +1184,7 @@ func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} }
func
(
m
*
GetVersionResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetVersionResponse
)
ProtoMessage
()
{}
func
(
*
GetVersionResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
16
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
16
}
}
func
(
m
*
GetVersionResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetVersionResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -1226,7 +1226,7 @@ func (m *GetHistoryRequest) Reset() { *m = GetHistoryRequest{} }
func
(
m
*
GetHistoryRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetHistoryRequest
)
ProtoMessage
()
{}
func
(
*
GetHistoryRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
17
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
17
}
}
func
(
m
*
GetHistoryRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetHistoryRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -1272,7 +1272,7 @@ func (m *GetHistoryResponse) Reset() { *m = GetHistoryResponse{} }
func
(
m
*
GetHistoryResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
GetHistoryResponse
)
ProtoMessage
()
{}
func
(
*
GetHistoryResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
18
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
18
}
}
func
(
m
*
GetHistoryResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_GetHistoryResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -1310,7 +1310,9 @@ type TestReleaseRequest struct {
// parallel specifies whether or not to run test pods in parallel
Parallel
bool
`protobuf:"varint,4,opt,name=parallel,proto3" json:"parallel,omitempty"`
// maximum number of test pods to run in parallel
MaxParallel
uint32
`protobuf:"varint,5,opt,name=max_parallel,json=maxParallel,proto3" json:"max_parallel,omitempty"`
MaxParallel
uint32
`protobuf:"varint,5,opt,name=max_parallel,json=maxParallel,proto3" json:"max_parallel,omitempty"`
// logs specifies whether or not to dump the logs from the test pods
Logs
bool
`protobuf:"varint,6,opt,name=logs,proto3" json:"logs,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
...
@@ -1320,7 +1322,7 @@ func (m *TestReleaseRequest) Reset() { *m = TestReleaseRequest{} }
func
(
m
*
TestReleaseRequest
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TestReleaseRequest
)
ProtoMessage
()
{}
func
(
*
TestReleaseRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
19
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
19
}
}
func
(
m
*
TestReleaseRequest
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TestReleaseRequest
.
Unmarshal
(
m
,
b
)
...
...
@@ -1375,6 +1377,13 @@ func (m *TestReleaseRequest) GetMaxParallel() uint32 {
return
0
}
func
(
m
*
TestReleaseRequest
)
GetLogs
()
bool
{
if
m
!=
nil
{
return
m
.
Logs
}
return
false
}
// TestReleaseResponse represents a message from executing a test
type
TestReleaseResponse
struct
{
Msg
string
`protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
...
...
@@ -1388,7 +1397,7 @@ func (m *TestReleaseResponse) Reset() { *m = TestReleaseResponse{} }
func
(
m
*
TestReleaseResponse
)
String
()
string
{
return
proto
.
CompactTextString
(
m
)
}
func
(
*
TestReleaseResponse
)
ProtoMessage
()
{}
func
(
*
TestReleaseResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
fileDescriptor_tiller_
45351572bedcef6e
,
[]
int
{
20
}
return
fileDescriptor_tiller_
0094511522f6b040
,
[]
int
{
20
}
}
func
(
m
*
TestReleaseResponse
)
XXX_Unmarshal
(
b
[]
byte
)
error
{
return
xxx_messageInfo_TestReleaseResponse
.
Unmarshal
(
m
,
b
)
...
...
@@ -1898,93 +1907,94 @@ var _ReleaseService_serviceDesc = grpc.ServiceDesc{
Metadata
:
"hapi/services/tiller.proto"
,
}
func
init
()
{
proto
.
RegisterFile
(
"hapi/services/tiller.proto"
,
fileDescriptor_tiller_45351572bedcef6e
)
}
var
fileDescriptor_tiller_45351572bedcef6e
=
[]
byte
{
// 1357 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x9c
,
0x58
,
0xdd
,
0x6e
,
0x1b
,
0x45
,
0x14
,
0x8e
,
0xbd
,
0xfe
,
0x3d
,
0x4e
,
0x5c
,
0x77
,
0x9a
,
0x26
,
0x5b
,
0x53
,
0x50
,
0x58
,
0x44
,
0xeb
,
0x16
,
0xea
,
0x40
,
0xe0
,
0x06
,
0x09
,
0x21
,
0xa5
,
0x6e
,
0x48
,
0x0a
,
0x21
,
0x45
,
0x9b
,
0xb6
,
0x48
,
0x48
,
0xc8
,
0x9a
,
0xd8
,
0xe3
,
0x76
,
0xe9
,
0x7a
,
0xc7
,
0xec
,
0xcc
,
0x86
,
0xe4
,
0x11
,
0xb8
,
0xe4
,
0x9a
,
0x5b
,
0xae
,
0x79
,
0x06
,
0x6e
,
0x79
,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,
0xd3
,
0x8b
,
0x4d
,
0xb1
,
0xfb
,
0x60
,
0x05
,
0xcd
,
0xab
,
0xfa
,
0x7e
,
0x0c
,
0x3f
,
0x36
,
0x8c
,
0xea
,
0x59
,
0x4d
,
0xfe
,
0xef
,
0xc2
,
0x67
,
0xff
,
0x05
,
0x00
,
0x00
,
0xff
,
0xff
,
0xba
,
0xd8
,
0xb0
,
0xb9
,
0x4b
,
0x11
,
0x00
,
0x00
,
func
init
()
{
proto
.
RegisterFile
(
"hapi/services/tiller.proto"
,
fileDescriptor_tiller_0094511522f6b040
)
}
var
fileDescriptor_tiller_0094511522f6b040
=
[]
byte
{
// 1369 bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x9c
,
0x58
,
0xdd
,
0x72
,
0x1b
,
0xc5
,
0x12
,
0xb6
,
0xb4
,
0xfa
,
0x6d
,
0xd9
,
0x8a
,
0x32
,
0x71
,
0xec
,
0x8d
,
0x4e
,
0xce
,
0x29
,
0x9f
,
0xa5
,
0x48
,
0x94
,
0x40
,
0x64
,
0x30
,
0xdc
,
0x50
,
0x45
,
0x51
,
0xe5
,
0x28
,
0xc6
,
0x0e
,
0x18
,
0x87
,
0x5a
,
0x27
,
0xa1
,
0x8a
,
0x2a
,
0x4a
,
0x35
,
0x96
,
0x46
,
0xce
,
0x92
,
0xd5
,
0x8e
,
0xd8
,
0x99
,
0x35
,
0xf6
,
0x23
,
0x70
,
0xc9
,
0x3b
,
0x70
,
0x0d
,
0xaf
,
0xc0
,
0x2d
,
0xcf
,
0xc0
,
0xcb
,
0x50
,
0xf3
,
0xb7
,
0xd6
,
0xac
,
0x76
,
0x15
,
0xe1
,
0x1b
,
0xed
,
0xcc
,
0x74
,
0x4f
,
0x77
,
0xcf
,
0xf7
,
0x4d
,
0xf7
,
0xb4
,
0x0d
,
0xdd
,
0x37
,
0x78
,
0x16
,
0xec
,
0x32
,
0x12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0x7c
,
0xf2
,
0x4f
,
0x00
,
0x00
,
0x00
,
0xff
,
0xff
,
0x8a
,
0x23
,
0x76
,
0x0d
,
0x5f
,
0x11
,
0x00
,
0x00
,
}
pkg/releasetesting/environment.go
View file @
024f168b
...
...
@@ -19,17 +19,22 @@ package releasetesting
import
(
"bytes"
"fmt"
"io/ioutil"
"log"
"strings"
"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"
"k8s.io/helm/pkg/tiller/environment"
)
// logEscaper is necessary for escaping control characters found in the log stream.
var
logEscaper
=
strings
.
NewReplacer
(
"%"
,
"%%"
)
// Environment encapsulates information about where test suite executes and returns results
type
Environment
struct
{
Namespace
string
...
...
@@ -126,3 +131,31 @@ 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
))
if
err
!=
nil
{
env
.
streamError
(
err
.
Error
())
continue
}
if
len
(
infos
)
==
0
{
env
.
streamError
(
fmt
.
Sprint
(
"Pod manifest is invalid. Unable to obtain the logs"
))
continue
}
podName
:=
infos
[
0
]
.
Object
.
(
*
v1
.
Pod
)
.
Name
lr
,
err
:=
env
.
KubeClient
.
GetPodLogs
(
podName
,
env
.
Namespace
)
if
err
!=
nil
{
env
.
streamError
(
err
.
Error
())
continue
}
logs
,
err
:=
ioutil
.
ReadAll
(
lr
)
if
err
!=
nil
{
env
.
streamError
(
err
.
Error
())
continue
}
msg
:=
fmt
.
Sprintf
(
"
\n
POD LOGS: %s
\n
%s"
,
podName
,
logEscaper
.
Replace
(
string
(
logs
)))
env
.
streamMessage
(
msg
,
release
.
TestRun_RUNNING
)
}
}
pkg/releasetesting/environment_test.go
View file @
024f168b
...
...
@@ -89,6 +89,24 @@ func TestDeleteTestPodsFailingDelete(t *testing.T) {
}
}
func
TestGetTestPodLogs
(
t
*
testing
.
T
)
{
mockTestSuite
:=
testSuiteFixture
([]
string
{
manifestWithTestSuccessHook
})
mockTestEnv
:=
newMockTestingEnvironment
()
mockTestEnv
.
KubeClient
=
newGetLogKubeClient
()
mockTestEnv
.
GetLogs
(
mockTestSuite
.
TestManifests
)
expectedMessage
:=
"ERROR: Pod manifest is invalid. Unable to obtain the logs"
stream
:=
mockTestEnv
.
Stream
.
(
*
mockStream
)
if
len
(
stream
.
messages
)
!=
1
{
t
.
Errorf
(
"Expected 1 message, got: %v"
,
len
(
stream
.
messages
))
}
if
stream
.
messages
[
0
]
.
Msg
!=
expectedMessage
{
t
.
Errorf
(
"Expected message '%s', got: %v"
,
expectedMessage
,
stream
.
messages
[
0
]
.
Msg
)
}
}
func
TestStreamMessage
(
t
*
testing
.
T
)
{
mockTestEnv
:=
newMockTestingEnvironment
()
...
...
@@ -181,3 +199,13 @@ func newCreateFailingKubeClient() *createFailingKubeClient {
func
(
p
*
createFailingKubeClient
)
Create
(
ns
string
,
r
io
.
Reader
,
t
int64
,
shouldWait
bool
)
error
{
return
errors
.
New
(
"We ran out of budget and couldn't create finding-nemo"
)
}
type
getLogKubeClient
struct
{
tillerEnv
.
PrintingKubeClient
}
func
newGetLogKubeClient
()
*
getLogKubeClient
{
return
&
getLogKubeClient
{
PrintingKubeClient
:
tillerEnv
.
PrintingKubeClient
{
Out
:
ioutil
.
Discard
},
}
}
pkg/tiller/environment/environment.go
View file @
024f168b
...
...
@@ -175,6 +175,8 @@ type KubeClient interface {
// and returns said phase (PodSucceeded or PodFailed qualify).
WaitAndGetCompletedPodPhase
(
namespace
string
,
reader
io
.
Reader
,
timeout
time
.
Duration
)
(
v1
.
PodPhase
,
error
)
GetPodLogs
(
name
,
namespace
string
)
(
io
.
ReadCloser
,
error
)
WaitUntilCRDEstablished
(
reader
io
.
Reader
,
timeout
time
.
Duration
)
error
}
...
...
@@ -255,6 +257,11 @@ func (p *PrintingKubeClient) WaitAndGetCompletedPodPhase(namespace string, reade
return
v1
.
PodUnknown
,
err
}
// GetPodLogs implements KubeClient GetPodLogs.
func
(
p
*
PrintingKubeClient
)
GetPodLogs
(
name
,
ns
string
)
(
io
.
ReadCloser
,
error
)
{
return
nil
,
nil
}
// WaitUntilCRDEstablished implements KubeClient WaitUntilCRDEstablished.
func
(
p
*
PrintingKubeClient
)
WaitUntilCRDEstablished
(
reader
io
.
Reader
,
timeout
time
.
Duration
)
error
{
_
,
err
:=
io
.
Copy
(
p
.
Out
,
reader
)
...
...
pkg/tiller/environment/environment_test.go
View file @
024f168b
...
...
@@ -78,6 +78,10 @@ func (k *mockKubeClient) WaitAndGetCompletedPodStatus(namespace string, reader i
return
""
,
nil
}
func
(
k
*
mockKubeClient
)
GetPodLogs
(
name
,
namespace
string
)
(
io
.
ReadCloser
,
error
)
{
return
nil
,
nil
}
func
(
k
*
mockKubeClient
)
WaitUntilCRDEstablished
(
reader
io
.
Reader
,
timeout
time
.
Duration
)
error
{
return
nil
}
...
...
pkg/tiller/release_server_test.go
View file @
024f168b
...
...
@@ -679,6 +679,9 @@ func (kc *mockHooksKubeClient) Validate(ns string, reader io.Reader) error {
func
(
kc
*
mockHooksKubeClient
)
WaitAndGetCompletedPodPhase
(
namespace
string
,
reader
io
.
Reader
,
timeout
time
.
Duration
)
(
v1
.
PodPhase
,
error
)
{
return
v1
.
PodUnknown
,
nil
}
func
(
kc
*
mockHooksKubeClient
)
GetPodLogs
(
name
,
namespace
string
)
(
io
.
ReadCloser
,
error
)
{
return
nil
,
nil
}
func
(
kc
*
mockHooksKubeClient
)
WaitUntilCRDEstablished
(
reader
io
.
Reader
,
timeout
time
.
Duration
)
error
{
return
nil
...
...
pkg/tiller/release_testing.go
View file @
024f168b
...
...
@@ -69,6 +69,10 @@ func (s *ReleaseServer) RunReleaseTest(req *services.TestReleaseRequest, stream
Results
:
tSuite
.
Results
,
}
if
req
.
Logs
{
testEnv
.
GetLogs
(
tSuite
.
TestManifests
)
}
if
req
.
Cleanup
{
testEnv
.
DeleteTestPods
(
tSuite
.
TestManifests
)
}
...
...
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