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
e097e1b7
Commit
e097e1b7
authored
Nov 30, 2016
by
Matt Butcher
Committed by
GitHub
Nov 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1599 from technosophos/fix/1590-pass-no-hooks-to-server
fix(helm): pass the no-hooks flag during upgrade
parents
3b4d7164
5f3d255e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
upgrade.go
cmd/helm/upgrade.go
+6
-1
client.go
pkg/helm/client.go
+1
-0
No files found.
cmd/helm/upgrade.go
View file @
e097e1b7
...
@@ -135,7 +135,12 @@ func (u *upgradeCmd) run() error {
...
@@ -135,7 +135,12 @@ func (u *upgradeCmd) run() error {
return
err
return
err
}
}
_
,
err
=
u
.
client
.
UpdateRelease
(
u
.
release
,
chartPath
,
helm
.
UpdateValueOverrides
(
rawVals
),
helm
.
UpgradeDryRun
(
u
.
dryRun
),
helm
.
UpgradeDisableHooks
(
u
.
disableHooks
))
_
,
err
=
u
.
client
.
UpdateRelease
(
u
.
release
,
chartPath
,
helm
.
UpdateValueOverrides
(
rawVals
),
helm
.
UpgradeDryRun
(
u
.
dryRun
),
helm
.
UpgradeDisableHooks
(
u
.
disableHooks
))
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"UPGRADE FAILED: %v"
,
prettyError
(
err
))
return
fmt
.
Errorf
(
"UPGRADE FAILED: %v"
,
prettyError
(
err
))
}
}
...
...
pkg/helm/client.go
View file @
e097e1b7
...
@@ -132,6 +132,7 @@ func (h *Client) UpdateRelease(rlsName string, chstr string, opts ...UpdateOptio
...
@@ -132,6 +132,7 @@ func (h *Client) UpdateRelease(rlsName string, chstr string, opts ...UpdateOptio
req
.
Chart
=
chart
req
.
Chart
=
chart
req
.
DryRun
=
h
.
opts
.
dryRun
req
.
DryRun
=
h
.
opts
.
dryRun
req
.
Name
=
rlsName
req
.
Name
=
rlsName
req
.
DisableHooks
=
h
.
opts
.
disableHooks
ctx
:=
NewContext
()
ctx
:=
NewContext
()
if
h
.
opts
.
before
!=
nil
{
if
h
.
opts
.
before
!=
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