Skip to content

Commit

Permalink
Fix Helm Downloader Credential Handling (open-component-model#571)
Browse files Browse the repository at this point in the history
* fix credential not being used

* restructure nested if
  • Loading branch information
fabianburth authored and mandelsoft committed Nov 10, 2023
1 parent 8dfdd01 commit d79f074
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/helm/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ func DownloadChart(out common.Printer, ctx oci.ContextProvider, ref, version, re
func (d *chartDownloader) complete(ctx oci.ContextProvider, ref, repourl string) error {
rf := repo.NewFile()

creds := d.creds
if d.creds == nil {
d.creds = identity.GetCredentials(ctx.OCIContext(), repourl, ref)
if d.creds == nil {
creds = common.Properties{}
}
}
creds := d.creds
if creds == nil {
creds = common.Properties{}
}

config := vfs.Join(d.fs, d.root, ".config")
Expand Down

0 comments on commit d79f074

Please sign in to comment.