Skip to content

Commit

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

* restructure nested if

Co-authored-by: Fabian Burth <[email protected]>
  • Loading branch information
mandelsoft and fabianburth authored Nov 13, 2023
1 parent 45331d0 commit fa84b71
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 fa84b71

Please sign in to comment.