From bc3d14cbc5399fcce1aa739a15a7a02416cf6133 Mon Sep 17 00:00:00 2001 From: Tomas Pizarro Moreno Date: Tue, 25 Jan 2022 17:33:45 +0100 Subject: [PATCH] fix: helm package with dependency update for charts with OCI dependencies Signed-off-by: Tomas Pizarro Moreno (cherry picked from commit e02aeab0e9babe9b16f31362746b5e70790f6e7f) --- cmd/helm/package.go | 3 ++- cmd/helm/root.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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),