Skip to content

Commit

Permalink
fix: helm package with dependency update for charts with OCI dependen…
Browse files Browse the repository at this point in the history
…cies

Signed-off-by: Tomas Pizarro Moreno <tpizarro@vmware.com>
(cherry picked from commit e02aeab)
  • Loading branch information
tompizmor authored and mattfarina committed Mar 9, 2022
1 parent 9499df0 commit bc3d14c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/helm/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}

Expand Down Expand Up @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/helm/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit bc3d14c

Please sign in to comment.