diff --git a/controllers/helmchart_controller.go b/controllers/helmchart_controller.go index e470fcb2..80ec3d6c 100644 --- a/controllers/helmchart_controller.go +++ b/controllers/helmchart_controller.go @@ -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://") {