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
6cf4b870
Commit
6cf4b870
authored
Apr 03, 2019
by
Joschka Tillmanns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't do multiple chart reads on upgrade
Signed-off-by:
Joschka Tillmanns
<
joschka@tillmanns.me
>
parent
69002eeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
upgrade.go
cmd/helm/upgrade.go
+4
-3
No files found.
cmd/helm/upgrade.go
View file @
6cf4b870
...
@@ -248,7 +248,8 @@ func (u *upgradeCmd) run() error {
...
@@ -248,7 +248,8 @@ func (u *upgradeCmd) run() error {
}
}
// Check chart requirements to make sure all dependencies are present in /charts
// Check chart requirements to make sure all dependencies are present in /charts
if
ch
,
err
:=
chartutil
.
Load
(
chartPath
);
err
==
nil
{
ch
,
err
:=
chartutil
.
Load
(
chartPath
)
if
err
==
nil
{
if
req
,
err
:=
chartutil
.
LoadRequirements
(
ch
);
err
==
nil
{
if
req
,
err
:=
chartutil
.
LoadRequirements
(
ch
);
err
==
nil
{
if
err
:=
renderutil
.
CheckDependencies
(
ch
,
req
);
err
!=
nil
{
if
err
:=
renderutil
.
CheckDependencies
(
ch
,
req
);
err
!=
nil
{
return
err
return
err
...
@@ -260,9 +261,9 @@ func (u *upgradeCmd) run() error {
...
@@ -260,9 +261,9 @@ func (u *upgradeCmd) run() error {
return
prettyError
(
err
)
return
prettyError
(
err
)
}
}
resp
,
err
:=
u
.
client
.
UpdateRelease
(
resp
,
err
:=
u
.
client
.
UpdateRelease
FromChart
(
u
.
release
,
u
.
release
,
ch
artPath
,
ch
,
helm
.
UpdateValueOverrides
(
rawVals
),
helm
.
UpdateValueOverrides
(
rawVals
),
helm
.
UpgradeDryRun
(
u
.
dryRun
),
helm
.
UpgradeDryRun
(
u
.
dryRun
),
helm
.
UpgradeRecreate
(
u
.
recreate
),
helm
.
UpgradeRecreate
(
u
.
recreate
),
...
...
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