Merge pull request #280 from runyontr/runyontr-279

Properly escape outer loop for present dependency
This commit is contained in:
Hidde Beydals 2021-02-02 16:50:06 +01:00 committed by GitHub
commit ec05e0e172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -539,11 +539,15 @@ func (r *HelmChartReconciler) reconcileFromTarballArtifact(ctx context.Context,
var dwr []*helm.DependencyWithRepository
for _, dep := range reqs {
// Exclude existing dependencies
found := false
for _, existing := range deps {
if existing.Name() == dep.Name {
continue
found = true
}
}
if found {
continue
}
// Continue loop if file scheme detected
if dep.Repository == "" || strings.HasPrefix(dep.Repository, "file://") {