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
25a1cff3
Unverified
Commit
25a1cff3
authored
Jul 31, 2018
by
Matthew Fisher
Committed by
GitHub
Jul 31, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4402 from novas0x2a/force-obey-dryrun
fix(tiller): make update --force --dry-run obey dry-run
parents
3a6fbee3
0736022d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
release_update.go
pkg/tiller/release_update.go
+10
-2
No files found.
pkg/tiller/release_update.go
View file @
25a1cff3
...
...
@@ -161,6 +161,10 @@ func (s *ReleaseServer) performUpdateForce(req *services.UpdateReleaseRequest) (
Timeout
:
req
.
Timeout
,
Wait
:
req
.
Wait
,
})
// update new release with next revision number so as to append to the old release's history
newRelease
.
Version
=
oldRelease
.
Version
+
1
res
:=
&
services
.
UpdateReleaseResponse
{
Release
:
newRelease
}
if
err
!=
nil
{
s
.
Log
(
"failed update prepare step: %s"
,
err
)
...
...
@@ -172,6 +176,12 @@ func (s *ReleaseServer) performUpdateForce(req *services.UpdateReleaseRequest) (
return
res
,
err
}
if
req
.
DryRun
{
s
.
Log
(
"dry run for %s"
,
newRelease
.
Name
)
res
.
Release
.
Info
.
Description
=
"Dry run complete"
return
res
,
nil
}
// From here on out, the release is considered to be in Status_DELETING or Status_DELETED
// state. There is no turning back.
oldRelease
.
Info
.
Status
.
Code
=
release
.
Status_DELETING
...
...
@@ -218,8 +228,6 @@ func (s *ReleaseServer) performUpdateForce(req *services.UpdateReleaseRequest) (
}
}
// update new release with next revision number so as to append to the old release's history
newRelease
.
Version
=
oldRelease
.
Version
+
1
s
.
recordRelease
(
newRelease
,
false
)
if
err
:=
s
.
ReleaseModule
.
Update
(
oldRelease
,
newRelease
,
req
,
s
.
env
);
err
!=
nil
{
msg
:=
fmt
.
Sprintf
(
"Upgrade %q failed: %s"
,
newRelease
.
Name
,
err
)
...
...
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