Merge pull request #280 from runyontr/runyontr-279
Properly escape outer loop for present dependency
This commit is contained in:
commit
ec05e0e172
|
@ -539,11 +539,15 @@ func (r *HelmChartReconciler) reconcileFromTarballArtifact(ctx context.Context,
|
||||||
var dwr []*helm.DependencyWithRepository
|
var dwr []*helm.DependencyWithRepository
|
||||||
for _, dep := range reqs {
|
for _, dep := range reqs {
|
||||||
// Exclude existing dependencies
|
// Exclude existing dependencies
|
||||||
|
found := false
|
||||||
for _, existing := range deps {
|
for _, existing := range deps {
|
||||||
if existing.Name() == dep.Name {
|
if existing.Name() == dep.Name {
|
||||||
continue
|
found = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if found {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Continue loop if file scheme detected
|
// Continue loop if file scheme detected
|
||||||
if dep.Repository == "" || strings.HasPrefix(dep.Repository, "file://") {
|
if dep.Repository == "" || strings.HasPrefix(dep.Repository, "file://") {
|
||||||
|
|
Loading…
Reference in New Issue