diff --git a/cmd/helm/package.go b/cmd/helm/package.go index 7134a8784..ce965b729 100644 --- a/cmd/helm/package.go +++ b/cmd/helm/package.go @@ -48,7 +48,7 @@ If '--keyring' is not specified, Helm usually defaults to the public keyring unless your environment is otherwise configured. ` -func newPackageCmd(out io.Writer) *cobra.Command { +func newPackageCmd(cfg *action.Configuration, out io.Writer) *cobra.Command { client := action.NewPackage() valueOpts := &values.Options{} @@ -92,6 +92,7 @@ func newPackageCmd(out io.Writer) *cobra.Command { Keyring: client.Keyring, Getters: p, Debug: settings.Debug, + RegistryClient: cfg.RegistryClient, RepositoryConfig: settings.RepositoryConfig, RepositoryCache: settings.RepositoryCache, } diff --git a/cmd/helm/root.go b/cmd/helm/root.go index 05af89d13..394f241d5 100644 --- a/cmd/helm/root.go +++ b/cmd/helm/root.go @@ -167,7 +167,7 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string newPullCmd(actionConfig, out), newShowCmd(actionConfig, out), newLintCmd(out), - newPackageCmd(out), + newPackageCmd(actionConfig, out), newRepoCmd(out), newSearchCmd(out), newVerifyCmd(out),