Commit Graph

1741 Commits

Author SHA1 Message Date
Stefan Prodan 574bb4c5c5
Merge pull request #853 from pjbgf/remove-musl
Remove MUSL and enable threadless libgit2 support
2022-08-01 12:03:03 +03:00
Paulo Gomes f51f9d3305
Remove MUSL and enable threadless libgit2 support
Use of MUSL was a temporary solution to mitigate cross-platform
issues while building openssl and libssh2. Since Unmanaged transport has
been deprecated, openssl and libssh2 dependencies are no longer required
and by extension MUSL.

Enables libgit2 threadless support and provides a regression assurance
for fluxcd/image-automation-controller#339.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-31 18:38:27 +01:00
Stefan Prodan d9dfb9d79a
Merge pull request #816 from fluxcd/go-1-18
Upgrade to Go 1.18
2022-07-27 19:35:58 +03:00
Stefan Prodan f2772eb9d3
Update Go to 1.18 in CI
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-07-27 19:02:19 +03:00
Philip Laine b47d468e8f
Upgrade to go 1.18
Signed-off-by: Philip Laine <philip.laine@gmail.com>
2022-07-27 19:02:13 +03:00
Sunny b7aa05ce66
Merge pull request #852 from fluxcd/cherry-pick-rel-v0.25.11
cherry-pick #851
2022-07-27 21:23:47 +05:30
Sunny 24df01c0ce
Release v0.25.11
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-07-27 21:08:52 +05:30
Stefan Prodan 02874571d5
Merge pull request #848 from souleb/merge-helmchart-reconcile-test
Merge HelmChart Reconcile tests
2022-07-27 17:02:25 +03:00
Soule BA fba6477bc3
Merge HelmChart Reconcile tests
If implemented this merges
TestHelmChartReconciler_reconcileFromHelmRepository and
TestHelmChartReconciler_Reconcile

Signed-off-by: Soule BA <soule@weave.works>
2022-07-27 14:06:23 +02:00
Max Jonas Werner 5a036da87d
Merge pull request #846 from fluxcd/conditionally-fetch-oci-tags
Don't fetch tags when exact version is specified in `HelmChart`
2022-07-27 14:00:34 +02:00
Max Jonas Werner b86572b98e
don't fetch tags when exact version is used in HelmRepository
Taking this shortcut has two benefits:

1. It allows charts to be fetched from AWS's public container registry
   at public.ecr.aws
2. It makes reconciling a HelmChart faster by skipping one or more
   potentially expensive API calls to the registry.

I adapted the unit tests to the new behavior that the
OCIChartRepository doesn't fail anymore for the case where a specific
chart version has been requested that doesn't actually exist in the
registry.

refs #845

Signed-off-by: Max Jonas Werner <max@e13.dev>
2022-07-27 13:25:43 +02:00
Stefan Prodan 0329b83ed4
Merge pull request #847 from fluxcd/remove-macos-1015
remove MacOS 10.15 from testing matrix
2022-07-27 14:04:23 +03:00
Max Jonas Werner 060d52d5f1
remove MacOS 10.15 from testing matrix
This version is not supported, anymore. More info at
https://github.com/actions/virtual-environments/issues/5583

Signed-off-by: Max Jonas Werner <max@e13.dev>
2022-07-27 12:21:16 +02:00
Paulo Gomes cf1a27c0d7
Merge pull request #842 from aryan9600/remove-unmanaged-transport
libgit2: upgrade to golang-with-libgit2 v0.1.4
2022-07-26 12:05:30 +01:00
Sanskar Jaiswal bd37bc3161 build: bump tonistiigi/xx version
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-26 15:10:46 +05:30
Sanskar Jaiswal 536bacbea3 libgit2: upgrade to golang-with-libgit2 v0.1.4
Upgrade to golang-with-libgit2 v0.1.4 and use libgit2 which is compiled
without being linked to libssh2 and openssl.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-26 15:10:29 +05:30
Max Jonas Werner 3ad7bc9971
Merge pull request #838 from davinkevin/fix-openapi-url
fix(openapi): full regex for url to prevent error
2022-07-22 10:40:08 +02:00
Davin Kevin 889a505a4b fix(openapi): full regex for url to prevent error
In IDEA, the previous pattern led to an error because the regex wasn't complete.

Signed-off-by: Davin Kevin <davin.kevin@gmail.com>
2022-07-22 08:26:30 +00:00
Paulo Gomes 3013b5fc3d
Merge pull request #698 from cwyl02/cwyl02/cache-helmrepo-early
feat: cache helmrepo early after reconcil
2022-07-21 19:19:18 +01:00
York Chen d5a75f6b2f feat: cache helmrepo early after reconcile
1. moved chartRepo.Unload() from reconcileSource() to the defer func in reconcileArtifact to allow caching index in memory
2. added step to init memory cache in reconcileArtifact()
3. added step to save helmrepo index into memory cache in reconcileArtifact()

Signed-off-by: York Chen <ychen@d2iq.com>
2022-07-21 18:17:26 +01:00
Sunny a6072c3301
Merge pull request #819 from aryan9600/remove-unmanaged-transport
libgit2: decommission unmanaged transport
2022-07-20 19:26:53 +05:30
Sanskar Jaiswal 0978a7ab61 gitrepo: update reconciler to be injected with transport initialization knowledge
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Sanskar Jaiswal 39fd59781b docs: remove managed transport section
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Sanskar Jaiswal cd03c26083 libgit2: enforce timeouts for http transports
Attach context to HTTP requests at the transport level to honour
timeouts.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Sanskar Jaiswal a252532c65 libgit2: overwrite remote url if it exists
Update initRepoWithRemote() so that it overwrites the remote url with
the provided url if the remote already exists, instead of erroring out.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Sanskar Jaiswal f5ada743d5 libgit2: decommission unmanaged transport
Decommission libgit2 unmanaged transport and remove the related feature
gate, making managed transport the default.

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-07-20 18:56:37 +05:30
Paulo Gomes 8f3cf1276e
Merge pull request #840 from pjbgf/fail-fast
build: disable matrix fail-fast
2022-07-20 12:55:19 +01:00
Paulo Gomes c12a56a8a7
build: disable matrix fail-fast
Intermittent issues are causing the test matrix to fail
and whenever that happens, all other matrix options are
automatically cancelled. This increases the amount of
retries needed in order to get all tests to pass.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-20 12:10:23 +01:00
Paulo Gomes 377ae169bf
Merge pull request #829 from pjbgf/release-v0.25.10
Release v0.25.10
2022-07-15 15:08:07 +01:00
Paulo Gomes eb079de5be
Release v0.25.10
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-15 12:20:56 +01:00
Paulo Gomes 8cff49f2c9
Merge pull request #834 from fluxcd/libgit2-1.3.2
Update libgit2 to v1.3.2
2022-07-15 08:31:51 +01:00
Paulo Gomes 9c21f8a7a1
tests: fix error message for invalid x509 in darwin
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-14 19:02:45 +01:00
Paulo Gomes aeaeec881e
Update libgit2 to v1.3.2
Updates golang-with-libgit2-all to v0.1.2 which contains libgit2-1.3.2.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-14 12:24:26 +01:00
Stefan Prodan 0bf9de319d
Merge pull request #832 from souleb/issue-830
Fix Panic when no artifact in source
2022-07-14 14:20:23 +03:00
Soule BA f3ab2e0d46
Fix Panic when no artifact in source
If implemented, the helmrepository type will be used to decide whether a
reconciliation can continue in the absence of source artifact, instead
of url.

Signed-off-by: Soule BA <soule@weave.works>
2022-07-14 10:57:22 +02:00
Stefan Prodan 6868ff14b2
Merge pull request #833 from souleb/update-helm-dep
Bump Helm to v3.9.1
2022-07-14 10:03:06 +03:00
Soule BA 3717f02d46
Bump Helm to v3.9.1
Signed-off-by: Soule BA <soule@weave.works>
2022-07-14 01:18:27 +02:00
Stefan Prodan 4536554611
Merge pull request #827 from souleb/issue-815
Fix SIGSEGV when resolving charts dependencies
2022-07-13 16:32:21 +03:00
Soule BA e4209dba8a
Fix SIGSEGV when resolving charts dependencies
If implemented, this make sure than we clear only referenced
downloaders.

It is also checked if the repository url is supported.

Signed-off-by: Soule BA <soule@weave.works>
2022-07-13 14:59:38 +02:00
Paulo Gomes 7b4ba69c00
Merge pull request #823 from pjbgf/update-deps
build: provenance and tampering checks for libgit2
2022-07-13 11:11:23 +01:00
Paulo Gomes afd02d3cfc
build: provenance and tampering checks for libgit2
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-13 10:10:42 +01:00
Paulo Gomes 73ce792414
Fix github.com/emicklei/go-restful (CVE-2022-1996)
This addresses CVE-2022-1996, due to v2.16.0 including
emicklei/go-restful@9266625.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-13 09:49:18 +01:00
Paulo Gomes 02f5b94baf
Update to golang-with-libgit2-all image
This dependency now releases two different images, one
containing the entire dependency chain for libgit2, and
another containing just the library itself. The latter
will be later used once Managed Transport is completely
removed from source controller.

As part of this update, the image now follows a new tag
format which is semver based and starts at 0.1.0.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-08 09:39:06 +01:00
Paulo Gomes 0633c57629
Update dependencies
- cloud.google.com/go/storage to version 1.23.0.
- github.com/ProtonMail/go-crypto to version 0.0.0-20220623141421-5afb4c282135.
- github.com/distribution/distribution/v3 to version 3.0.0-20220702071910-8857a1948739.
- github.com/minio/minio-go/v7 to version 7.0.31.
- golang.org/x/crypto to version 0.0.0-20220622213112-05595931fe9d.
- golang.org/x/net to version 0.0.0-20220706163947-c90051bbdb60.
- google.golang.org/api to version 0.86.0.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-07 17:23:22 +01:00
Paulo Gomes 22c9e2e85f
Merge pull request #818 from pjbgf/fs-perms
Decrease fs perms to 0o700
2022-07-07 10:42:20 +01:00
Paulo Gomes 60e46d139c
Decrease fs perms to 0o700
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-07 09:57:51 +01:00
Sunny 0219905036
Merge pull request #770 from souleb/oci-for-deps-manager
Enable Umbrella Chart with dependencies from OCI repositories
2022-07-06 23:16:27 +05:30
Soule BA 361b975bf4
Enable remote dependencies from OCI repositories
If implemented, the source controller will be able to resolve charts
dependencies from OCI repositories.

The remote builder has been refactored as part of this work.

Signed-off-by: Soule BA <soule@weave.works>
2022-07-06 19:11:01 +02:00
Soule BA b402e546bc
Refactor repository logic
Signed-off-by: Soule BA <soule@weave.works>
2022-07-06 19:11:00 +02:00
Paulo Gomes f7006e91dd
Merge pull request #817 from pjbgf/expand-macos
build: run darwin tests on macos 10.15, 11 and 12
2022-07-06 15:38:28 +01:00