1
0
mirror of synced 2026-02-13 21:16:57 +00:00

manifestgen/install: use clean default HTTP client

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals
2023-08-22 13:50:44 +02:00
parent 8801031f06
commit 00c6ac81b9
3 changed files with 7 additions and 4 deletions

View File

@@ -26,6 +26,8 @@ import (
"path/filepath"
"strings"
"github.com/hashicorp/go-cleanhttp"
"github.com/fluxcd/pkg/kustomize/filesys"
"github.com/fluxcd/pkg/tar"
@@ -44,7 +46,7 @@ func fetch(ctx context.Context, url, version, dir string) error {
}
// download
resp, err := http.DefaultClient.Do(req.WithContext(ctx))
resp, err := cleanhttp.DefaultClient().Do(req.WithContext(ctx))
if err != nil {
return fmt.Errorf("failed to download manifests.tar.gz from %s, error: %w", ghURL, err)
}