diff --git a/pkg/helm/downloader.go b/pkg/helm/downloader.go index 33c45e6c25..4a076f131b 100644 --- a/pkg/helm/downloader.go +++ b/pkg/helm/downloader.go @@ -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{} } }