Paulo Gomes
5b15bb7f94
Implement Managed Transport for libgit2
...
libgit2 network operations are blocking and do not provide timeout nor context capabilities,
leading to several reports of the controllers hanging indefinitely.
By using managed transport, golang primitives such as http.Transport and net.Dial can be used
to ensure timeouts are enforced.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-21 15:19:00 +00:00
Paulo Gomes
4d8ebe69a0
Ensure libgit2 resources are released
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-21 13:06:38 +01:00
Hidde Beydals
c79d68937f
Merge pull request #325 from fluxcd/runtime-meta-rc
2022-03-21 13:04:05 +01:00
Hidde Beydals
307950d4b2
Run tidy before Go test
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-21 12:53:03 +01:00
Hidde Beydals
963b94a154
Update image-reflector-controller to v0.17.0
...
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-21 12:52:09 +01:00
Sunny
146a86865c
Use new standardized runtime and meta package
...
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-03-21 12:45:55 +01:00
Paulo Gomes
7f135528e6
Merge pull request #324 from pjbgf/remove-gogit
...
Remove direct dependency to go-git
2022-03-04 15:58:37 +00:00
Paulo Gomes
1a52581356
Remove direct dependency to go-git
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-04 11:10:22 +00:00
Paulo Gomes
121577cf3d
Merge pull request #321 from pjbgf/libgit2-130
...
Update libgit2 to 1.3.0
2022-03-02 12:48:53 +00:00
Paulo Gomes
d20cdb532f
Refactor initGitRepo to use libgit2 instead of go-git
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-01 14:48:15 +00:00
Paulo Gomes
5e704a8751
Update attributions
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-01 14:48:14 +00:00
Paulo Gomes
4ab219e64b
Fix tests after upgrading to libgit2 1.3.0
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-01 14:48:13 +00:00
Paulo Gomes
b898759d26
Update libgit2 to 1.3.0 and update source-controller to v0.21.3
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-01 14:48:12 +00:00
Paulo Gomes
8f6e83dae0
Revert manager target to go build instead of go run
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-01 14:48:11 +00:00
Sunny
0f456fab3f
Merge pull request #322 from fluxcd/release-v0.20.1
...
Release v0.20.1
2022-03-01 20:04:29 +05:30
Sunny
68cfdfde34
Release v0.20.1
...
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-03-01 19:25:25 +05:30
Sunny
fc28147b6b
tests/fuzz: Use main go.mod
...
Fix the fuzz test failure.
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-03-01 19:25:25 +05:30
Stefan Prodan
544e487039
Merge pull request #319 from pjbgf/patch-180222
...
Update dependencies
2022-02-18 12:34:50 +02:00
Paulo Gomes
17f596d829
Update github.com/prometheus/client_golang to v1.11.1 (CVE fix)
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-02-18 08:44:47 +00:00
Stefan Prodan
a0548243f8
Merge pull request #318 from pjbgf/maintainers
...
Add pjbgf to Maintainers
2022-02-17 13:42:10 +02:00
Paulo Gomes
e5939db3bd
Add pjbgf to Maintainers
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-02-17 11:23:12 +00:00
Hidde Beydals
507d9e1396
Merge pull request #317 from pjbgf/fuzz-san
2022-02-16 11:56:36 +01:00
Paulo Gomes
d7f49ad757
Add support for multiple fuzz sanitizers
...
The oss-fuzz repository contains the configuration for fluxcd supported sanitizers.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-02-15 16:58:32 +00:00
Stefan Prodan
09a0191630
Merge pull request #314 from aryan9600/aryan9600/fuzz-tests
...
Add support for fuzzing tests using oss-fuzz-build.
2022-02-12 09:30:25 +02:00
Sanskar Jaiswal
fea92bd44c
Add support for fuzzing tests using oss-fuzz-build.
...
Co-authored-by: Paulo Gomes <paulo.gomes@weave.works>
Co-authored-by: AdamKorcz <adam@adalogics.com>
Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
2022-02-11 19:59:48 +05:30
Hidde Beydals
cd64a44e76
Merge pull request #311 from aryan9600/aryan9600/static-build
2022-02-10 13:08:39 +01:00
Sanskar Jaiswal
a348d9f394
Upgrade libgit2 and fix static builds
...
* Bump to golang-with-libgit2:1.1.1.6 to speed up build time when cross compiling. Previous version was compiling in emulation mode instead, which added +10x overhead.
* Ensure that make test is executed against the exact same libraries that will be shipped on the built image.
* Simplify Makefile to reduce its complexity.
* Libgit2 behaviour:
linux-amd64 download static libraries from the official container image.
linux-arm64 on top of the above, requires static musl tool chain (automatically downloaded).
darwin-amd64 and darwin-arm64 download universal static libraries for darwin from https://github.com/fluxcd/golang-with-libgit2 releases.
Co-authored-by: Paulo Gomes <paulo.gomes@weave.works>
Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
2022-02-10 16:28:41 +05:30
Stefan Prodan
7aa9f94037
Merge pull request #300 from fluxcd/retire-squaremo
...
Retire squaremo as a maintainer
2022-02-02 15:13:41 +02:00
Michael Bridgen
3ca9d1da3b
Retire squaremo as a maintainer
...
Signed-Off-By: Michael Bridgen <michael@weave.works>
2022-02-02 10:30:51 +00:00
Stefan Prodan
ce4f4ba4d1
Merge pull request #307 from fluxcd/release-v0.20.0
...
Release v0.20.0
2022-02-01 10:48:19 +02:00
Stefan Prodan
b1d4cb3464
Release v0.20.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-02-01 10:38:11 +02:00
Hidde Beydals
643b9c7009
Merge pull request #303 from pjbgf/bookworm
2022-01-28 15:35:06 +01:00
Paulo Gomes
b343008a94
Update test to run against static libraries
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-01-28 09:35:20 +00:00
Paulo Gomes
01a2eaac8c
Bump source-controller to v0.21.1
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-01-28 09:35:19 +00:00
Paulo Gomes
3a4fd75d77
Statically build using musl toolchain and target alpine
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-01-28 09:35:18 +00:00
Paulo Gomes
81680201d1
Add make verify
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-01-28 09:35:17 +00:00
Paulo Gomes
fda7842bf4
Add attributions for dependencies and their license details
...
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-01-28 09:35:16 +00:00
Paulo Gomes
68fd60f14d
Migrate to debian:bookworm-slim
...
This aligns with the final image used by source controller.
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-01-28 09:35:12 +00:00
Stefan Prodan
6aaf01a6ee
Merge pull request #305 from SomtochiAma/no-cross-ns-ref
...
Allow disabling cross-namespace references
2022-01-28 09:49:16 +02:00
Somtochi Onyekwere
0ca01bd254
Add flag to disable cross-namespace referencing
...
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-01-28 08:32:21 +01:00
Stefan Prodan
895bb22d2f
Merge pull request #304 from fluxcd/source-controller/api-v0.21.0
...
Update source-controller packages to 0.21.0
2022-01-26 17:46:21 +02:00
Stefan Prodan
72d0be7c0c
Update source-controller packages to 0.21.0
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-01-26 17:18:38 +02:00
Stefan Prodan
3d52b88c02
Merge pull request #288 from fluxcd/kyaml-update
...
Update kyaml to v0.13.0
2022-01-26 17:08:26 +02:00
Aurel Canciu
aa3b6cc4b7
Update kyaml to v0.13.0
...
Updating kyaml to match the version we use in other components. This
version's most significant change for us would be that kyaml will no
longer override indentations in the targeted files.
Signed-off-by: Aurel Canciu <aurelcanciu@gmail.com>
2022-01-26 15:56:25 +01:00
Stefan Prodan
e023a12809
Merge pull request #302 from fluxcd/sbom-cosign
...
Publish SBOM and sign release artifacts
2022-01-26 09:21:52 +02:00
Stefan Prodan
03016c1f35
Publish SBOM and sign release artifacts
...
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-01-25 15:24:18 +02:00
Stefan Prodan
83b06b4167
Merge pull request #299 from aryan9600/aryan9600/ref-gitrepo-cross-ns
...
Add support for cross-namespace sourceRef in ImageUpdateAutomation
2022-01-25 14:10:52 +02:00
Sanskar Jaiswal
3de51e7a1e
add support for cross-namespace sourceRef in ImageUpdateAutomation
...
ImageUpdateAutomation objects can now refer to GitRepository objects in other
namespaces. Implemented by switching sourceRef from a SourceReference to a
dependency.CrossNamespaceDependencyReference.
Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
2022-01-25 14:21:37 +05:30
Stefan Prodan
524b603a72
Merge pull request #301 from yiannistri/dev-docs
...
Update dev docs
2022-01-24 15:55:34 +02:00
Yiannis
d9ef8c673f
Update dev docs
...
Signed-off-by: Yiannis <yiannis.triantafyllopoulos@gmail.com>
2022-01-24 13:33:25 +00:00