diff --git a/flux_local/git_repo.py b/flux_local/git_repo.py index 2ac569c4..3b115600 100644 --- a/flux_local/git_repo.py +++ b/flux_local/git_repo.py @@ -439,8 +439,12 @@ async def visit_kustomization( ) unique = {ks.namespaced_name for ks in kustomizations} if len(unique) != len(kustomizations): + ks_names = [ks.namespaced_name for ks in kustomizations] + dupes = list(filter(lambda x: ks_names.count(x) > 1, ks_names)) raise FluxException( - "Detected multiple Fluxtomizations with the same name indicating a multi-cluster setup. Please run with a more strict path" + f"Detected multiple Fluxtomizations with the same name: {dupes}. " + "This indicates either (1) an incorrect Kustomization which needs to be fixed " + "or (2) a multi-cluster setup which requires flux-local to run with a more strict --path." ) return kustomizations diff --git a/flux_local/helm.py b/flux_local/helm.py index bb2dc417..63c15f4c 100644 --- a/flux_local/helm.py +++ b/flux_local/helm.py @@ -211,7 +211,8 @@ async def template( if not repo: raise HelmException( f"Unable to find HelmRepository for {release.chart.chart_name} for " - f"HelmRelease {release.name}" + f"HelmRelease {release.name} " + f"({len(self._repos)} other HelmRepositories in --path)" ) args: list[str] = [ HELM_BIN,