From b4536cc48ec39bfea53f36cf65e9f8c885858f2c Mon Sep 17 00:00:00 2001 From: koxu1996 Date: Sat, 17 Sep 2022 17:27:47 +0200 Subject: [PATCH] Use standard bucket URL to avoid TLS issues (#151) Fix for https://github.com/hayorov/helm-gcs/issues/150. --- pkg/repo/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/repo/repo.go b/pkg/repo/repo.go index 98a2ba52..2e5edcf4 100644 --- a/pkg/repo/repo.go +++ b/pkg/repo/repo.go @@ -357,7 +357,7 @@ func getURL(base string, public bool, publicURL string) (string, error) { if public && publicURL != "" { return publicURL, nil } else if public { - return fmt.Sprintf("https://%s.storage.googleapis.com/%s", baseURL.Host, baseURL.Path), nil + return fmt.Sprintf("https://storage.googleapis.com/%s/%s", baseURL.Host, baseURL.Path), nil } return baseURL.String(), nil }