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
4a7d47cd
Commit
4a7d47cd
authored
Jul 27, 2017
by
Matt Butcher
Committed by
GitHub
Jul 27, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2719 from nebril/release-module-nil
Handle nil responses returned from rudder funcs
parents
e8d80729
6b16ee2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
release_modules.go
pkg/tiller/release_modules.go
+12
-2
No files found.
pkg/tiller/release_modules.go
View file @
4a7d47cd
...
@@ -124,6 +124,9 @@ func (m *RemoteReleaseModule) Rollback(current, target *release.Release, req *se
...
@@ -124,6 +124,9 @@ func (m *RemoteReleaseModule) Rollback(current, target *release.Release, req *se
func
(
m
*
RemoteReleaseModule
)
Status
(
r
*
release
.
Release
,
req
*
services
.
GetReleaseStatusRequest
,
env
*
environment
.
Environment
)
(
string
,
error
)
{
func
(
m
*
RemoteReleaseModule
)
Status
(
r
*
release
.
Release
,
req
*
services
.
GetReleaseStatusRequest
,
env
*
environment
.
Environment
)
(
string
,
error
)
{
statusRequest
:=
&
rudderAPI
.
ReleaseStatusRequest
{
Release
:
r
}
statusRequest
:=
&
rudderAPI
.
ReleaseStatusRequest
{
Release
:
r
}
resp
,
err
:=
rudder
.
ReleaseStatus
(
statusRequest
)
resp
,
err
:=
rudder
.
ReleaseStatus
(
statusRequest
)
if
resp
==
nil
{
return
""
,
err
}
return
resp
.
Info
.
Status
.
Resources
,
err
return
resp
.
Info
.
Status
.
Resources
,
err
}
}
...
@@ -131,10 +134,17 @@ func (m *RemoteReleaseModule) Status(r *release.Release, req *services.GetReleas
...
@@ -131,10 +134,17 @@ func (m *RemoteReleaseModule) Status(r *release.Release, req *services.GetReleas
func
(
m
*
RemoteReleaseModule
)
Delete
(
r
*
release
.
Release
,
req
*
services
.
UninstallReleaseRequest
,
env
*
environment
.
Environment
)
(
string
,
[]
error
)
{
func
(
m
*
RemoteReleaseModule
)
Delete
(
r
*
release
.
Release
,
req
*
services
.
UninstallReleaseRequest
,
env
*
environment
.
Environment
)
(
string
,
[]
error
)
{
deleteRequest
:=
&
rudderAPI
.
DeleteReleaseRequest
{
Release
:
r
}
deleteRequest
:=
&
rudderAPI
.
DeleteReleaseRequest
{
Release
:
r
}
resp
,
err
:=
rudder
.
DeleteRelease
(
deleteRequest
)
resp
,
err
:=
rudder
.
DeleteRelease
(
deleteRequest
)
errs
:=
make
([]
error
,
0
)
result
:=
""
if
err
!=
nil
{
if
err
!=
nil
{
return
resp
.
Release
.
Manifest
,
[]
error
{
err
}
errs
=
append
(
errs
,
err
)
}
if
resp
!=
nil
{
result
=
resp
.
Release
.
Manifest
}
}
return
res
p
.
Release
.
Manifest
,
[]
error
{}
return
res
ult
,
errs
}
}
// DeleteRelease is a helper that allows Rudder to delete a release without exposing most of Tiller inner functions
// DeleteRelease is a helper that allows Rudder to delete a release without exposing most of Tiller inner functions
...
...
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