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
9d67d8b9
Commit
9d67d8b9
authored
Jul 13, 2017
by
Aishwarya Thangappa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PENDING status to helm install
parent
313a891b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
release_install.go
pkg/tiller/release_install.go
+7
-5
No files found.
pkg/tiller/release_install.go
View file @
9d67d8b9
...
...
@@ -116,7 +116,7 @@ func (s *ReleaseServer) prepareRelease(req *services.InstallReleaseRequest) (*re
Info
:
&
release
.
Info
{
FirstDeployed
:
ts
,
LastDeployed
:
ts
,
Status
:
&
release
.
Status
{
Code
:
release
.
Status_
UNKNOWN
},
Status
:
&
release
.
Status
{
Code
:
release
.
Status_
PENDING
},
Description
:
"Initial install underway"
,
// Will be overwritten.
},
Manifest
:
manifestDoc
.
String
(),
...
...
@@ -172,6 +172,7 @@ func (s *ReleaseServer) performRelease(r *release.Release, req *services.Install
Recreate
:
false
,
Timeout
:
req
.
Timeout
,
}
s
.
recordRelease
(
r
,
false
)
if
err
:=
s
.
ReleaseModule
.
Update
(
old
,
r
,
updateReq
,
s
.
env
);
err
!=
nil
{
msg
:=
fmt
.
Sprintf
(
"Release replace %q failed: %s"
,
r
.
Name
,
err
)
s
.
Log
(
"warning: %s"
,
msg
)
...
...
@@ -179,19 +180,20 @@ func (s *ReleaseServer) performRelease(r *release.Release, req *services.Install
r
.
Info
.
Status
.
Code
=
release
.
Status_FAILED
r
.
Info
.
Description
=
msg
s
.
recordRelease
(
old
,
true
)
s
.
recordRelease
(
r
,
fals
e
)
s
.
recordRelease
(
r
,
tru
e
)
return
res
,
err
}
default
:
// nothing to replace, create as normal
// regular manifests
s
.
recordRelease
(
r
,
false
)
if
err
:=
s
.
ReleaseModule
.
Create
(
r
,
req
,
s
.
env
);
err
!=
nil
{
msg
:=
fmt
.
Sprintf
(
"Release %q failed: %s"
,
r
.
Name
,
err
)
s
.
Log
(
"warning: %s"
,
msg
)
r
.
Info
.
Status
.
Code
=
release
.
Status_FAILED
r
.
Info
.
Description
=
msg
s
.
recordRelease
(
r
,
fals
e
)
s
.
recordRelease
(
r
,
tru
e
)
return
res
,
fmt
.
Errorf
(
"release %s failed: %s"
,
r
.
Name
,
err
)
}
}
...
...
@@ -203,7 +205,7 @@ func (s *ReleaseServer) performRelease(r *release.Release, req *services.Install
s
.
Log
(
"warning: %s"
,
msg
)
r
.
Info
.
Status
.
Code
=
release
.
Status_FAILED
r
.
Info
.
Description
=
msg
s
.
recordRelease
(
r
,
fals
e
)
s
.
recordRelease
(
r
,
tru
e
)
return
res
,
err
}
}
...
...
@@ -217,7 +219,7 @@ func (s *ReleaseServer) performRelease(r *release.Release, req *services.Install
//
// One possible strategy would be to do a timed retry to see if we can get
// this stored in the future.
s
.
recordRelease
(
r
,
fals
e
)
s
.
recordRelease
(
r
,
tru
e
)
return
res
,
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