Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
WIP: Support for helm repository aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyb committed Feb 21, 2019
1 parent 871abc3 commit 1afb97b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/lifecycle/render/helm/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ func (f *LocalTemplater) addDependencies(
) (depPaths []string, err error) {
for _, dependency := range dependencies {
if dependency.Repository != "" {
if strings.HasPrefix(dependency.Repository, "@") || strings.HasPrefix(dependency.Repository, "alias:") {
// The repository is an alias. Assume it has already been added.
return depPaths, nil
}
repoURL, err := url.Parse(dependency.Repository)
if err != nil {
return depPaths, errors.Wrapf(err, "parse dependency repo %s", dependency.Repository)
Expand Down

0 comments on commit 1afb97b

Please sign in to comment.