From 5ed725e528e554d0a1662f9cdfd602e578a46f96 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Mon, 7 Apr 2025 20:47:49 +0200 Subject: [PATCH] fix(clustertool): handle with oci repository reference with trailing slash --- clustertool/pkg/fluxhandler/helm.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clustertool/pkg/fluxhandler/helm.go b/clustertool/pkg/fluxhandler/helm.go index f54cb41dc1e..17cecb846e5 100644 --- a/clustertool/pkg/fluxhandler/helm.go +++ b/clustertool/pkg/fluxhandler/helm.go @@ -99,7 +99,12 @@ func HelmPull(repo string, name string, version string, dest string, silent bool updateHelmRepo(repoName, repo, silent) repo = repoName } else { - link = repo + "/" + name + link := repo + if !strings.HasSuffix(repo, "/") { + link += "/" + } + link += name + client.RepoURL = "" client.RepoURL = "" }