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
0e7781c4
Commit
0e7781c4
authored
Jan 10, 2017
by
Adam Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tiller): add missing name to status response
parent
d830bc19
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
release_server.go
pkg/tiller/release_server.go
+5
-1
release_server_test.go
pkg/tiller/release_server_test.go
+3
-0
No files found.
pkg/tiller/release_server.go
View file @
0e7781c4
...
...
@@ -227,7 +227,11 @@ func (s *ReleaseServer) GetReleaseStatus(c ctx.Context, req *services.GetRelease
}
sc
:=
rel
.
Info
.
Status
.
Code
statusResp
:=
&
services
.
GetReleaseStatusResponse
{
Info
:
rel
.
Info
,
Namespace
:
rel
.
Namespace
}
statusResp
:=
&
services
.
GetReleaseStatusResponse
{
Name
:
rel
.
Name
,
Namespace
:
rel
.
Namespace
,
Info
:
rel
.
Info
,
}
// Ok, we got the status of the release as we had jotted down, now we need to match the
// manifest we stashed away with reality from the cluster.
...
...
pkg/tiller/release_server_test.go
View file @
0e7781c4
...
...
@@ -1153,6 +1153,9 @@ func TestGetReleaseStatus(t *testing.T) {
t
.
Errorf
(
"Error getting release content: %s"
,
err
)
}
if
res
.
Name
!=
rel
.
Name
{
t
.
Errorf
(
"Expected name %q, got %q"
,
rel
.
Name
,
res
.
Name
)
}
if
res
.
Info
.
Status
.
Code
!=
release
.
Status_DEPLOYED
{
t
.
Errorf
(
"Expected %d, got %d"
,
release
.
Status_DEPLOYED
,
res
.
Info
.
Status
.
Code
)
}
...
...
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