Commit Graph

1855 Commits

Author SHA1 Message Date
Sunny 04b06dd943
Merge pull request #1003 from fluxcd/git-bearer-token-udpate
Update git dependencies for bearer token support
2023-01-24 15:59:54 +05:30
Sunny f707193e90 Update git dependencies for bearer token support
Also update API spec to mention bearer token field in git secret.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-23 21:14:07 +05:30
Sunny e0d9585de2
Merge pull request #999 from fluxcd/test-reconciler-ratelimiter
Set rate limiter option in test reconcilers
2023-01-18 17:15:21 +05:30
Sunny e0cf840d02 Set rate limiter option in test reconcilers
Set the default rate limiter configuration used in main.go in the
test reconcilers as well.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-18 16:10:30 +05:30
Stefan Prodan c2e605a5e2
Merge pull request #998 from fluxcd/oci-testdata-umask-fix
Fix OCIRepository testdata permissions
2023-01-18 10:12:46 +02:00
Sunny baaa412779 Fix ocirepo testdata permissions
On Ubuntu, and maybe some others, the
`TestOCIRepository_reconcileArtifact` test fails due to difference in
file permission, which results in different artifact checksum. This is
due to the default umask on ubuntu. Reset the permission of the testdata
to fix the test on ubuntu.
There's a similar fix in `TestGitRepositoryReconciler_reconcileArtifact`
test.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-18 02:59:15 +05:30
Sunny 8785ebc9ae
Merge pull request #996 from ybelleguic/fix-typo-in-secretRef-helmRepo
fix typo in helmRepo secretRef spec CRD
2023-01-16 20:25:45 +05:30
Yohan Belléguic 2741d0a150 fix typo in helmRepo secretRef spec CRD
When using a TLS authentication, user can provide a custom certificate
by setting the caFile key in the secret, not caCert.

Signed-off-by: Yohan Belléguic <yohan.belleguic@arkea.com>
2023-01-16 19:52:06 +05:30
Hidde Beydals b939216694
Merge pull request #997 from fluxcd/dependabot/go_modules/github.com/containerd/containerd-1.6.12
build(deps): bump github.com/containerd/containerd from 1.6.10 to 1.6.12
2023-01-10 10:08:26 +00:00
dependabot[bot] 85f0fd6110
build(deps): bump github.com/containerd/containerd from 1.6.10 to 1.6.12
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.6.10 to 1.6.12.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.6.10...v1.6.12)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-10 09:46:21 +00:00
Sunny 802193c4e6
Merge pull request #974 from fluxcd/progressive-status
Introduce Progressive status
2023-01-10 15:13:50 +05:30
Sunny 197a03b989 update docs with progressive status
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny 7b44c9db0d Add progressive status in helmrepo-oci reconciler
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny 55573f5eb6 Add progressive status in ocirepo reconciler
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny 9c866ee49d Add progressive status in helmchart reconciler
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny 3d6a5e1203 Add progressive status in helmrepo reconciler
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny ccf0b624a7 Add progressive status in bucket reconciler
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny 887b5309bf Add progressive status in gitrepository reconciler
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny e253e4c62b reconcile: Add support for progressive status
Replace the patch Helper with SerialPatcher which is used for
progressive status patching.

Update the tests to use progressive status reasons in tests.

Add ProgressingWithRetry Reconciling reason for failed
reconciliation result to indicate a finished failure operation.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny b044c6b7ff Update fluxcd/pkg/runtime dependency
Update pkg/runtime for progressive status tooling.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2023-01-10 00:30:40 +05:30
Sunny c8feb3ac17
Merge pull request #993 from fluxcd/cleanup-minio-test-container
purge minio test container at the end of tests
2022-12-23 15:09:36 +05:30
Sunny 3a17461777 purge minio test container at the end of tests
Also, add container option to auto-remove a container when stopped, in
case a container is left behind due to some reason.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-23 03:46:01 +05:30
Sunny c74180503c
Merge pull request #992 from fluxcd/gc-lock-tests
Garbage collection lock file ignore tests
2022-12-21 15:28:05 +05:30
Sunny b115dda217 Use filepath instead of path in storage tests
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-21 05:25:49 +05:30
Sunny 6134dd97d5 test: Add tests for GC ignoring lock files
Add storage tests to ensure garbage collection ignores lock files for GC
count and deletes them eventually.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-21 05:25:45 +05:30
Paulo Gomes 5ccf2fd6d3
Merge pull request #986 from pjbgf/release-v0.33.0
Release v0.33.0
2022-12-20 14:05:20 +00:00
Paulo Gomes 334735f65a
Release v0.33.0
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-20 13:50:36 +00:00
Hidde Beydals a442bae59c
Merge pull request #991 from aryan9600/fix-gc
storage: take lock files into consideration while garbage collecting
2022-12-20 11:23:26 +00:00
Sanskar Jaiswal bdd08bcb72 storage: take lock files into consideration while garbage collecting
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-12-20 16:28:34 +05:30
Sunny 61e9123691
Merge pull request #990 from fluxcd/eventsv1-notifications
Use Event v1 API metadata keys in notifications
2022-12-19 20:41:07 +05:30
Sunny d551e59a06 Use Event v1 API metadata keys in notifications
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-19 20:21:49 +05:30
Sunny 9d776414af
Merge pull request #987 from fluxcd/chart-version-build-err
helm: typed errors from GetChartVersion()
2022-12-19 16:39:49 +05:30
Sunny 869a9df6e9 helm: return ErrExternal when loading index fails
Loading index can fail due to network error. Return ErrExternal typed
error for it.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-12-19 16:12:39 +05:30
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