Commit Graph

33 Commits

Author SHA1 Message Date
Matheus Pimenta 68b9bc7d0d
Update to Kubernetes 1.33.0 and Go 1.24.0
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
2025-05-03 16:47:50 +01:00
Matheus Pimenta e207b2f81c Build with Go 1.23
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
2024-08-15 11:02:43 -03:00
Stefan Prodan 682c598e30
Update dependencies to Go 1.22 and Kubernetes 1.29.3
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2024-04-02 17:56:59 +03:00
Stefan Prodan 316278ad48
Update Go to 1.21
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2024-01-22 17:55:20 +02:00
Stefan Prodan e922335ba0
Align go.mod version with Kubernetes (Go 1.20)
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2023-06-27 10:18:54 +03:00
Hidde Beydals 7cc9c9c5f4 Rename controllers to controller
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2023-05-25 10:08:03 +02:00
Sanskar Jaiswal c62e9f289c move `controllers` to `internal/controllers`
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2023-03-27 22:33:01 +05:30
Paulo Gomes a18b51b479
libgit2: Remove libgit2 from fuzzers
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-09 11:51:44 +00:00
Paulo Gomes cdbbca0fb0
build: Link libgit2 via LIB_FUZZING_ENGINE
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-25 17:07:52 +00:00
Paulo Gomes ccf956a0f3
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:23 +00:00
Paulo Gomes 5fefee34b7
build: Improve fuzz tests' 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-23 15:48:14 +00:00
Paulo Gomes 26bd330f18
build: Bump golang-with-libgit2 to v0.4.0
The new version uses libgit2 1.5.0 and requires git2go/v34.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-10-27 14:43:02 +01:00
Paulo Gomes cd5e074a8a
Bump libgit2 to v0.3.0
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-29 06:27:56 +01:00
Paulo Gomes ae7c00a15a
fuzz: Refactor Fuzzers based on Go native fuzzing
The existing fuzzers were converted into the Go native format.
Based on how the code was structured on this project, the fuzzers
can be quite effective, allowing for entire E2E fuzzing in some
cases, but with very low execution cost.

The previous controller fuzzer was converted but will need
to be refactored once the controller has been rewritten.
Note that due to the libgit2 dependencies a copy of
compile_native_go_fuzzer had to be made and modified so
that we can inject libgit2 during the linking process.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-08 20:50:12 +01:00
Paulo Gomes 06f4acd118
Use helper.Metrics for recording metrics
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-05 14:03:08 +01:00
Paulo Gomes 008c09e374
fuzz: Ensure Go 1.18 for fuzz image
- Upgrade fuzz container to Go 1.18.
- Upgrade worker to Go 1.18.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-08-25 11:35:42 +01:00
Paulo Gomes 3990e9c828
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 #339.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-31 20:06:46 +01:00
Paulo Gomes 63a1d43ea7
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 13:49:24 +01:00
Paulo Gomes 2fa5294b33
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-13 10:33:44 +01:00
Paulo Gomes 0d3c97cc87
build: Upgrade to Go 1.18
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-06 17:07:13 +01:00
Paulo Gomes 9e8406b9d0
fuzz: fix dependency issue
Fix for the error:
panic: internal error: can't find reason for requirement
on github.com/hashicorp/go-hclog@v0.12.0

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-06-07 16:43:25 +01:00
Hidde Beydals b2daa3e9df tests/fuzz: update build config
Ensure we only download github.com/AdaLogics/go-fuzz-headers once;
clearify use `go.mod`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-06-02 12:13:23 +02:00
Paulo Gomes 09a5c1213d
Update dependencies
- github.com/fluxcd/image-reflector-controller/api to version 0.17.2
- automatically pick up source controller and reflector versions on fuzzing.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-19 15:21:11 +01:00
Paulo Gomes 873f62073a
Update libgit2 to 1.3.1
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-13 15:56:56 +01:00
Ilan 257e5f4453 align fuzzing deps
Signed-off-by: Ilan <ilan.pillemer@gmail.com>
2022-03-28 14:17:39 +01:00
Hidde Beydals e674ce0cfc Update source-controller to v0.22.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-23 20:47:47 +01:00
Hidde Beydals 0029e64b78 Update image-reflector-controller API to v0.17.1
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-23 19:33:10 +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 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
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
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
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