From 564c61481185a02c63bc5f2a45ab2ed5cec6aa5d Mon Sep 17 00:00:00 2001 From: sowmya-sl Date: Mon, 23 Feb 2026 17:13:08 +0530 Subject: [PATCH] helm: Fall back gracefully when chart URL has no matching repository Instead of returning an error when no HelmChartRepository matches the chart URL, log an info message and return a ChartInfo with the version extracted from the URL. This allows charts from registries without a configured repository to be resolved. --- pkg/helm/actions/utility.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/helm/actions/utility.go b/pkg/helm/actions/utility.go index 2912b4d0339..0d10876c9e5 100644 --- a/pkg/helm/actions/utility.go +++ b/pkg/helm/actions/utility.go @@ -129,7 +129,10 @@ func getChartInfoFromChartUrl( } } } - return nil, fmt.Errorf("could not find a repository for the chart url %q in namespace %q", chartUrl, namespace) + klog.Infof("Could not find a repository for the chart url %q in namespace %q, proceeding without repository authentication", chartUrl, namespace) + return &ChartInfo{ + Version: chartVersionFromURL(chartUrl), + }, nil } // getRepositoryConnectionConfig returns the connection configuration for the