|
|
@ -30,6 +30,8 @@ import (
|
|
|
|
"golang.org/x/crypto/ssh/terminal"
|
|
|
|
"golang.org/x/crypto/ssh/terminal"
|
|
|
|
|
|
|
|
|
|
|
|
"k8s.io/helm/pkg/chartutil"
|
|
|
|
"k8s.io/helm/pkg/chartutil"
|
|
|
|
|
|
|
|
"k8s.io/helm/pkg/downloader"
|
|
|
|
|
|
|
|
"k8s.io/helm/pkg/getter"
|
|
|
|
"k8s.io/helm/pkg/helm/helmpath"
|
|
|
|
"k8s.io/helm/pkg/helm/helmpath"
|
|
|
|
"k8s.io/helm/pkg/proto/hapi/chart"
|
|
|
|
"k8s.io/helm/pkg/proto/hapi/chart"
|
|
|
|
"k8s.io/helm/pkg/provenance"
|
|
|
|
"k8s.io/helm/pkg/provenance"
|
|
|
@ -112,16 +114,16 @@ func (p *packageCmd) run(cmd *cobra.Command, args []string) error {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if p.dependencyUpdate {
|
|
|
|
if p.dependencyUpdate {
|
|
|
|
dependencyUpdateCommand := &dependencyUpdateCmd{
|
|
|
|
downloadManager := &downloader.Manager{
|
|
|
|
out: p.out,
|
|
|
|
Out: p.out,
|
|
|
|
keyring: p.keyring,
|
|
|
|
ChartPath: path,
|
|
|
|
helmhome: settings.Home,
|
|
|
|
HelmHome: settings.Home,
|
|
|
|
|
|
|
|
Keyring: p.keyring,
|
|
|
|
|
|
|
|
Getters: getter.All(settings),
|
|
|
|
|
|
|
|
Debug: settings.Debug,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dependencyUpdateCommand.chartpath, err = filepath.Abs(path)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
if err := downloadManager.Update(); err != nil {
|
|
|
|
return err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if err := dependencyUpdateCommand.run(); err != nil {
|
|
|
|
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|