Skip to content

Commit

Permalink
OCI Registries do not have an index file (#175)
Browse files Browse the repository at this point in the history
* OCI Registry has no index file

* OCI Registry has no index file

* Revert "OCI Registry has no index file"

This reverts commit c8722ef.
  • Loading branch information
nikolaigut authored Jul 18, 2023
1 parent 43db5e2 commit 8d0453a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ func (c *HelmClient) AddOrUpdateChartRepo(entry repo.Entry) error {

chartRepo.CachePath = c.Settings.RepositoryCache

_, err = chartRepo.DownloadIndexFile()
if err != nil {
return err
if !registry.IsOCI(entry.URL) {
_, err = chartRepo.DownloadIndexFile()
if err != nil {
return err
}
}

if c.storage.Has(entry.Name) {
Expand Down

0 comments on commit 8d0453a

Please sign in to comment.