|
|
@ -119,9 +119,7 @@ func (p *packageCmd) run(cmd *cobra.Command, args []string) error {
|
|
|
|
if err := setVersion(ch, p.version); err != nil {
|
|
|
|
if err := setVersion(ch, p.version); err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if settings.FlagDebug {
|
|
|
|
debug("Setting version to %s", p.version)
|
|
|
|
fmt.Fprintf(p.out, "Setting version to %s", p.version)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if filepath.Base(path) != ch.Metadata.Name {
|
|
|
|
if filepath.Base(path) != ch.Metadata.Name {
|
|
|
@ -145,8 +143,8 @@ func (p *packageCmd) run(cmd *cobra.Command, args []string) error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
name, err := chartutil.Save(ch, dest)
|
|
|
|
name, err := chartutil.Save(ch, dest)
|
|
|
|
if err == nil && settings.FlagDebug {
|
|
|
|
if err == nil {
|
|
|
|
fmt.Fprintf(p.out, "Saved %s to current directory\n", name)
|
|
|
|
debug("Saved %s to current directory\n", name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Save to $HELM_HOME/local directory. This is second, because we don't want
|
|
|
|
// Save to $HELM_HOME/local directory. This is second, because we don't want
|
|
|
@ -155,9 +153,8 @@ func (p *packageCmd) run(cmd *cobra.Command, args []string) error {
|
|
|
|
lr := p.home.LocalRepository()
|
|
|
|
lr := p.home.LocalRepository()
|
|
|
|
if err := repo.AddChartToLocalRepo(ch, lr); err != nil {
|
|
|
|
if err := repo.AddChartToLocalRepo(ch, lr); err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
} else if settings.FlagDebug {
|
|
|
|
|
|
|
|
fmt.Fprintf(p.out, "Saved %s to %s\n", name, lr)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
debug("Saved %s to %s\n", name, lr)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if p.sign {
|
|
|
|
if p.sign {
|
|
|
@ -194,9 +191,7 @@ func (p *packageCmd) clearsign(filename string) error {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if settings.FlagDebug {
|
|
|
|
debug(sig)
|
|
|
|
fmt.Fprintln(p.out, sig)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ioutil.WriteFile(filename+".prov", []byte(sig), 0755)
|
|
|
|
return ioutil.WriteFile(filename+".prov", []byte(sig), 0755)
|
|
|
|
}
|
|
|
|
}
|
|
|
|