1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Update Git packages

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2023-05-29 13:52:36 +03:00
parent aba5741450
commit 41cdd3dcf7
8 changed files with 81 additions and 76 deletions

View File

@@ -27,7 +27,7 @@ import (
"time"
"github.com/ProtonMail/go-crypto/openpgp"
gogit "github.com/fluxcd/go-git/v5"
gogit "github.com/go-git/go-git/v5"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/wait"

View File

@@ -27,7 +27,7 @@ import (
"strings"
"github.com/fluxcd/pkg/kustomize/filesys"
"github.com/fluxcd/pkg/untar"
"github.com/fluxcd/pkg/tar"
"github.com/fluxcd/flux2/v2/pkg/manifestgen/kustomization"
)
@@ -56,7 +56,7 @@ func fetch(ctx context.Context, url, version, dir string) error {
}
// extract
if _, err = untar.Untar(resp.Body, dir); err != nil {
if err = tar.Untar(resp.Body, dir, tar.WithMaxUntarSize(-1)); err != nil {
return fmt.Errorf("failed to untar manifests.tar.gz from %s, error: %w", ghURL, err)
}