Skip to content

Commit

Permalink
fix credential not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianburth committed Nov 9, 2023
1 parent 91cc50f commit 34f60fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/helm/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ func (d *chartDownloader) complete(ctx oci.ContextProvider, ref, repourl string)
creds := d.creds
if d.creds == nil {
d.creds = identity.GetCredentials(ctx.OCIContext(), repourl, ref)
if d.creds == nil {
if d.creds != nil {
creds = d.creds
} else {
creds = common.Properties{}
}
}
Expand Down

0 comments on commit 34f60fa

Please sign in to comment.