Skip to content

Commit

Permalink
feat: Support for oci repo (#25)
Browse files Browse the repository at this point in the history
Skip adding oci repository because it should work without that
  • Loading branch information
pravindahal authored Jul 23, 2024
1 parent b9e9b39 commit cb1d820
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ func addHelmRepos(path string) error {
return err
}
for _, dep := range chart.Dependencies {
if strings.HasPrefix(dep.Repository, "oci://") {
fmt.Println("skipping repo add for oci repository: " + dep.Repository)
continue
}

err := sh.Run("helm", "repo", "add", dep.Name, dep.Repository)
if err != nil {
return err
Expand Down

0 comments on commit cb1d820

Please sign in to comment.