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
5687723f
Commit
5687723f
authored
May 16, 2017
by
Michelle Noorali
Committed by
GitHub
May 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2429 from FengyunPan/fix-package
Add friendly output for helm package
parents
7830c7e6
346c8295
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
package.go
cmd/helm/package.go
+8
-2
No files found.
cmd/helm/package.go
View file @
5687723f
...
...
@@ -130,6 +130,10 @@ func (p *packageCmd) run(cmd *cobra.Command, args []string) error {
if
err
:=
checkDependencies
(
ch
,
reqs
,
p
.
out
);
err
!=
nil
{
return
err
}
}
else
{
if
err
!=
chartutil
.
ErrRequirementsNotFound
{
return
err
}
}
var
dest
string
...
...
@@ -146,7 +150,9 @@ func (p *packageCmd) run(cmd *cobra.Command, args []string) error {
name
,
err
:=
chartutil
.
Save
(
ch
,
dest
)
if
err
==
nil
{
debug
(
"Saved %s to current directory
\n
"
,
name
)
fmt
.
Fprintf
(
p
.
out
,
"Successfully packaged chart and saved it to: %s
\n
"
,
name
)
}
else
{
return
fmt
.
Errorf
(
"Failed to save: %s"
,
err
)
}
// Save to $HELM_HOME/local directory. This is second, because we don't want
...
...
@@ -156,7 +162,7 @@ func (p *packageCmd) run(cmd *cobra.Command, args []string) error {
if
err
:=
repo
.
AddChartToLocalRepo
(
ch
,
lr
);
err
!=
nil
{
return
err
}
debug
(
"Saved %s to %s
\n
"
,
name
,
lr
)
debug
(
"S
uccessfully s
aved %s to %s
\n
"
,
name
,
lr
)
}
if
p
.
sign
{
...
...
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