From 78acc4104ea1fbedafbe534dcd67dea6aa768d32 Mon Sep 17 00:00:00 2001 From: Simon Beck Date: Thu, 25 Apr 2024 15:45:19 +0200 Subject: [PATCH] Fix typo preventing the correct api being called There was a typo in the api detection which lead to chosing the wrong API, thus breaking the maintenance. --- pkg/maintenance/helm/helmpatcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/maintenance/helm/helmpatcher.go b/pkg/maintenance/helm/helmpatcher.go index 7587c8451..85ec2f4a8 100644 --- a/pkg/maintenance/helm/helmpatcher.go +++ b/pkg/maintenance/helm/helmpatcher.go @@ -221,7 +221,7 @@ func GetRelease(ctx context.Context, k8sClient client.Client, instanceNamespace func (h *ImagePatcher) getVersions(imageURL string) (VersionLister, error) { // We're using docker hub's rich api to list the image tags, if it's on docker hub. - if strings.Contains(imageURL, "http://hub.docker.com") { + if strings.Contains(imageURL, "https//hub.docker.com") { return h.getHubVersions(imageURL) } // For the rest we use the default registry API.