Commit Graph

1972 Commits

Author SHA1 Message Date
Sunny 8018b450a1 helm: typed errors from GetChartVersion()
Update the implementations of the helm repository downloaders to return
implementation specific typed error from GetChartVersion(). This is
needed to distinguish between persistent build error and transient build
error.
In the case of OCI charts, a transient network failure shouldn't be
considered a persistent build failure of the chart and should be
retried.

Two repository errors, ErrReference and ErrExternal are introduced for
the repository downloader implementations to provide enough context
about the failure which can be used by the caller to add appropriate
context as per the needs. In case of chart builder, it adds the build
error context based on the repository error value.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-19 16:12:39 +05:30
souleb 0f7a263d71
Merge pull request #988 from souleb/fix-aliased-deps-resolution
Fix aliased chart dependencies resolution
2022-12-19 10:36:37 +01:00
Soule BA 6b5d0b1335
Fix aliased chart dependencies resolution
If implemented, this fix the issue were aliased chart dependencies were
detected but not included in the final packaged chart.

Signed-off-by: Soule BA <soule@weave.works>
2022-12-16 23:12:27 +01:00
Paulo Gomes 2eb984abb5
Merge pull request #985 from pjbgf/bump-deps
Update dependencies
2022-12-16 10:15:09 +00:00
Paulo Gomes da1026654c
Update dependencies
- cloud.google.com/go/storage to version 1.28.1.
- github.com/AdaLogics/go-fuzz-headers to version 0.0.0-20221206110420-d395f97c4830.
- github.com/Azure/azure-sdk-for-go/sdk/storage/azblob to version 0.6.1.
- github.com/distribution/distribution/v3 to version 3.0.0-20221208165359-362910506bc2.
- github.com/google/go-containerregistry/pkg/authn/k8schain to version 0.0.0-20221213180026-23d895d08035.
- github.com/minio/minio-go/v7 to version 7.0.45.
- github.com/onsi/gomega to version 1.24.2.
- github.com/sigstore/sigstore to version 1.5.0.
- golang.org/x/crypto to version 0.4.0.
- google.golang.org/api to version 0.105.0.
- k8s.io/utils to version 0.0.0-20221128185143-99ec85e7a448.
- github.com/docker/cli to version 20.10.22+incompatible.
- github.com/fluxcd/pkg/git/gogit to version 0.4.0.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-16 09:50:07 +00:00
Sunny 10344d85a8
Merge pull request #983 from fluxcd/deps-update-oci
Update fluxcd/pkg/oci dependency
2022-12-15 17:06:51 +05:30
Sunny 67015ca416 Update fluxcd/pkg/oci dependency
Fixes contextual login for AWS with aws-sdk-go-v2 and contextual login
with registry address.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-15 16:53:02 +05:30
Hidde Beydals c71856d6c3
Merge pull request #982 from fluxcd/update-helm
helm: Update SDK to v3.10.3
2022-12-14 20:44:37 +00:00
Hidde Beydals 9ed8339a93 helm: Update SDK to v3.10.3
This patches a number of security related issues. Refer to
https://github.com/helm/helm/releases/tag/v3.10.3 for precise
information.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-14 19:14:18 +00:00
Hidde Beydals 571ed0c896
Merge pull request #981 from fluxcd/test-minio-container-img
minio: use container image for tests
2022-12-14 14:35:31 +00:00
Hidde Beydals 2af954135a darwin-amd64: setup Docker using Colima
Ref: https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-14 14:11:37 +00:00
Hidde Beydals 57543ae625 minio: use container image for tests
This drops the usage of `play.min.io` in favor of running a local
container image for tests. Which is a better practice, and resolves
test flakiness due to the endpoint being unavailable once in awhile.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-12-14 11:56:53 +00:00
Sunny 885c9f2cba
Merge pull request #980 from fluxcd/gitrepo-test-cleanup
GitRepo: git impl. deprecation test cleanup
2022-12-13 17:48:28 +05:30
Sunny 8126c99a76 GitRepo: git impl. deprecation test cleanup
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-13 17:00:09 +05:30
Paulo Gomes e877040466
Merge pull request #975 from fluxcd/fix-chroot
git: Fix issue with `recurseSubmodules`
2022-12-12 16:39:50 +00:00
Paulo Gomes ddb7afe81d
git: Fix issue with recurseSubmodules
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-12 15:58:18 +00:00
Paulo Gomes f7a64b1b81
Merge pull request #977 from fluxcd/remove-libgit2
Remove libgit2 and git2go from codebase
2022-12-12 15:54:40 +00:00
Paulo Gomes cc75764412
api: Deprecate field gitImplementation
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-12 15:34:32 +00:00
Paulo Gomes 953c10eaa9
features: Remove ForceGoGitImplementation
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-12 15:34:31 +00:00
Paulo Gomes ce4ac58bff
libgit2: Update documentation
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-12 15:34:30 +00:00
Paulo Gomes 2d65cf4f24
build: Remove unused scripts
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-12 15:34:30 +00:00
Paulo Gomes 69211171f8
libgit2: Remove libgit2 from fuzzers
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-12 15:34:29 +00:00
Paulo Gomes 5ffa6a5a68
libgit2: Remove references to libgit2 from code
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-12 15:34:28 +00:00
Paulo Gomes aad4060461
Merge pull request #972 from fluxcd/fs-new-servemux
fileserver: Use new ServeMux
2022-12-01 14:05:40 +00:00
Sunny d0097c2e54 fileserver: Use new ServeMux
Fileserver should use its own ServeMux.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-01 19:04:13 +05:30
Paulo Gomes 04d87b61ca
Merge pull request #969 from pjbgf/postbuild
build: Link libgit2 via LIB_FUZZING_ENGINE
2022-11-25 17:25:06 +00:00
Paulo Gomes aff16b9f49
build: Link libgit2 via LIB_FUZZING_ENGINE
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-25 17:07:34 +00:00
Paulo Gomes 7bfbb158ea
Merge pull request #968 from pjbgf/postbuild
build: Add postbuild script for fuzzing
2022-11-25 10:23:42 +00:00
Paulo Gomes 28f04a3ec0
build: Add postbuild script for fuzzing
In order to reduce the complexity of the fuzzing setup
the majority of the code is moving upstream. For that
to work, each project with specific requirements need
to configure pre and post build scripts to ensure
actions take place before the build, and any clean up
happens at the very end.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-24 19:12:58 +00:00
Sunny bc4451547c
Merge pull request #966 from pjbgf/verify
build: Add `tidy` to `make verify`
2022-11-24 17:02:04 +05:30
Paulo Gomes 6b60251f4e
build: Update go.mod and go.sum
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-24 11:11:12 +00:00
Paulo Gomes 92e3b007c9
build: Add tidy to make verify
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-24 11:10:10 +00:00
Paulo Gomes 6dacad7f24
Merge pull request #965 from pjbgf/fix-broken-fuzz
Migrate to Go Native fuzz and improve reliability
2022-11-24 10:14:35 +00:00
Paulo Gomes c5ded6f549
build: Update attributions
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-24 09:56:39 +00:00
Paulo Gomes 04dd4b54fb
build: Migrate to Go Native fuzz and improve reliability
Establish conventions which aligns with what is supported upstream
today, whilst expanding on documentation to ensure folks have
pointers on how to debug/check for issues going forwards.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-24 09:56:38 +00:00
Paulo Gomes a970fd774a
Bump envtest to 1.24.0
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-24 09:15:43 +00:00
Paulo Gomes b2eb601ba7
Merge pull request #962 from pjbgf/release-0.32.1
Release v0.32.1
2022-11-18 10:39:26 +00:00
Paulo Gomes a40b6df6d4
Release v0.32.1
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-18 10:20:04 +00:00
Paulo Gomes 309567592a
Merge pull request #961 from pjbgf/release-0.32.0
Release 0.32.0
2022-11-17 16:42:01 +00:00
Paulo Gomes 5c0d9bd273
Release v0.32.0
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-17 16:14:45 +00:00
Paulo Gomes 06e88f0789
docs: Improve Git implementation section
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-17 15:03:02 +00:00
Paulo Gomes 0b8e663b07
Merge pull request #960 from pjbgf/update-dep
Update dependencies
2022-11-17 13:37:46 +00:00
Paulo Gomes 22e8b0ff7e
Update dependencies
Given that pkg/* now depends on fluxcd/go-git, this changes also apply
the same changes here.

New versions:
- github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0.
- github.com/distribution/distribution/v3 v3.0.0-20221111170714-3b8fbf975279.
- github.com/fluxcd/pkg/apis/event v0.2.0.
- github.com/fluxcd/pkg/helmtestserver v0.10.0.
- github.com/fluxcd/pkg/oci v0.15.0.
- github.com/fluxcd/pkg/runtime v0.24.0.
- github.com/fluxcd/pkg/sourceignore v0.3.0.
- github.com/google/go-containerregistry v0.12.1.
- github.com/google/go-containerregistry/pkg/authn/k8schain v0.0.0-20221114162634-781782aa2757.
- golang.org/x/crypto v0.3.0.
- helm.sh/helm/v3 v3.10.2.
- k8s.io/api v0.25.4.
- k8s.io/client-go v0.25.4.
- sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-17 11:31:45 +00:00
Paulo Gomes 16fed8995d
Merge pull request #959 from aryan9600/bump-git-v0.7.0
gitrepo: bump git packages
2022-11-16 14:24:38 +00:00
Sanskar Jaiswal b98b9a92b6 gitrepo: bump git packages
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-11-16 19:34:11 +05:30
Stefan Prodan bd5eaca473
Merge pull request #958 from pjbgf/remove-nssswitch
Remove nsswitch.conf creation
2022-11-14 20:11:49 +02:00
Paulo Gomes feab080f50
Remove nsswitch.conf creation
Since 11-11-2022, the alpine:3.16 includes that file on its
base image. More information can be found at:
https://git.alpinelinux.org/aports/commit/?id=348653a9ba0701e8e968b3344e72313a9ef334e4

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-14 17:49:31 +00:00
Paulo Gomes 396e3cbbe6
Merge pull request #945 from pjbgf/feature-nolibgit2
gogit: Add new ForceGoGitImplementation FeatureGate
2022-11-11 10:42:41 +00:00
Paulo Gomes bdcf708ef8
git: Replace Stalling error for git implementation
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-11 10:25:01 +00:00
Paulo Gomes 331fd64952
gogit: Add new ForceGoGitImplementation FeatureGate
ForceGoGitImplementation ignores the value set for gitImplementation
and ensures that go-git is used for all GitRepository objects.
This can be used to confirm that Flux instances won't break if/when
the libgit2 implementation was to be deprecated.

When enabled, libgit2 won't be initialized, nor will any git2go cgo
code be called.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-11 10:25:00 +00:00