Commit Graph

787 Commits

Author SHA1 Message Date
Paulo Gomes 8640fd12cf
Update dependencies
Removed redirects no longer needed and bumped dependencies:
- github.com/fluxcd/image-reflector-controller/api to version 0.22.0.
- github.com/fluxcd/pkg/apis/meta to version 0.16.0.
- github.com/fluxcd/pkg/runtime to version 0.19.0.
- golang.org/x/crypto to version 0.0.0-20220926161630-eccd6366d1be.
- k8s.io/api to version 0.25.2.
- k8s.io/apimachinery to version 0.25.2.
- k8s.io/client-go to version 0.25.2.
- k8s.io/kube-openapi to version 0.0.0-20220927161751-b7a9e6fe3bb6.
- sigs.k8s.io/controller-runtime to version 0.13.0.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-28 17:36:58 +01:00
Paulo Gomes 688477c58a
build: Replace git2go with fluxcd fork
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-28 17:26:49 +01:00
Paulo Gomes 0eec37b437
Merge pull request #440 from fluxcd/build-go1.19
Build with Go 1.19
2022-09-28 17:24:14 +01:00
Stefan Prodan 79ca3ceec1
Build with Go 1.19
- Update Go to 1.19 in CI
- Use Go 1.19 in base image
- Update Alpine to 3.16 in the final image
- Update controller-gen v0.8.0 (v0.7 fails with Go 1.19) and regenerate manifests

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-28 18:38:55 +03:00
Stefan Prodan ffd00adecc
Merge pull request #439 from fluxcd/api-validate-duration
api: add custom validation for v1.Duration types
2022-09-20 12:22:42 +03:00
Stefan Prodan 456b48a909
api: add custom validation for v1.Duration types
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-20 12:08:08 +03:00
Stefan Prodan d0b0c69269
Merge pull request #438 from fluxcd/fix-build-cosign
Fix build by enabling Cosign experimental
2022-09-15 19:15:41 +03:00
Stefan Prodan d2247d9cee
Fix build by enabling Cosign experimental
Cosign 1.12.0 comes with a breaking change where verify blob requires `COSIGN_EXPERIMENTAL=1`

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-15 18:16:55 +03:00
Stefan Prodan 1563970a89
Merge pull request #436 from fluxcd/release-v0.25.0
Release v0.25.0
2022-09-12 12:07:49 +03:00
Stefan Prodan 9d125501c5
Release v0.25.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-12 11:43:32 +03:00
Stefan Prodan b7ac0fc222
Merge pull request #434 from fluxcd/sc-v0.29.0
Update dependencies
2022-09-09 19:41:57 +03:00
Stefan Prodan 9efa17f7bc
Update dependencies
- github.com/fluxcd/source-controller/api v0.29.0
- github.com/fluxcd/image-reflector-controller/api v0.21.0

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-09-09 19:30:27 +03:00
Stefan Prodan 25ef3c01a6
Merge pull request #432 from pjbgf/fuzz-native
fuzz: Refactor Fuzzers based on Go native fuzzing
2022-09-09 17:15:44 +03: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 a7435ed5d2
Merge pull request #431 from pjbgf/align-output
Aligns output with source-controller on no-ops
2022-09-05 14:13:27 +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 735ab61911
Log when no changes were made
This gets the behaviour a step closer to Source Controller
which logs after every reconciliation, even when no changes
were made.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-05 14:02:51 +01:00
Paulo Gomes 4978ee0f52
Merge pull request #429 from somtochiama/update-runtimr
Align controller logs to Kubernetes structured logging
2022-09-02 08:07:33 +01:00
Somtochi Onyekwere 50ab3112c4 Align controller logs to Kubernetes structured logging
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
2022-09-01 18:55:31 +01:00
Stefan Prodan 041a33e928
Merge pull request #427 from dholbach/update-flux-docs-structure
update to new doc links structure
2022-08-30 17:01:01 +03:00
Daniel Holbach 2d581b6e8b update to new doc links structure
Signed-off-by: Daniel Holbach <daniel@weave.works>
2022-08-30 15:24:16 +02:00
Stefan Prodan 115e7446b1
Merge pull request #426 from fluxcd/release-v0.24.2
Release v0.24.2
2022-08-29 13:22:11 +03:00
Stefan Prodan 24176b60ef
Release v0.24.2
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-29 12:58:03 +03:00
Stefan Prodan 344dd29c24
Merge pull request #425 from fluxcd/kube-1.25
Update Kubernetes packages to v1.25.0
2022-08-29 12:53:16 +03:00
Stefan Prodan 63e55d2f0b
Update Kubernetes packages to v1.25.0
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-08-29 12:42:21 +03:00
Paulo Gomes eb9020e4ac
Merge pull request #424 from pjbgf/fix-fuzz
fuzz: Ensure Go 1.18 for fuzz image
2022-08-25 12:12:56 +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 025154d7f0
Merge pull request #423 from PierreBart/pierrebart/fix-push
Fix fetch error in push branch
2022-08-25 11:34:57 +01:00
Pierre-Barthelemy Fiocconi 3c06e94877
Fix fetch error in push branch
Fixes error when push branch and reference branch are equal
by skipping switch to push branch

Signed-off-by: Pierre-Barthelemy Fiocconi <pierre-barthelemy.fi@doctolib.com>
2022-08-25 12:01:06 +02:00
Paulo Gomes 65e004f1e8
Merge pull request #417 from pjbgf/release-v0.24.1
Release v0.24.1
2022-08-10 15:06:36 +01:00
Paulo Gomes e008aef762
Release v0.24.1
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-08-10 14:52:54 +01:00
Paulo Gomes 32944cf4cd
Merge pull request #416 from pjbgf/panic-recovery
Enable RecoverPanic
2022-08-10 10:11:29 +01:00
Paulo Gomes 0fdcf7fe6d
Enable RecoverPanic
The controller-runtime provides the ability to recover from
panics that have arisen from a reconciliation. This change
enables this functionality by default.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-08-10 09:59:19 +01:00
Paulo Gomes 2d88b6f3ff
Merge pull request #413 from pjbgf/release-v0.24.0
Release v0.24.0
2022-08-09 15:42:08 +01:00
Paulo Gomes 165d06563b
Release v0.24.0
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-08-09 15:31:19 +01:00
Paulo Gomes 88fec8e8dd
Merge pull request #412 from pjbgf/update-deps
Decommission libgit2 Unmanaged Transport
2022-08-09 15:30:04 +01:00
Paulo Gomes 4a8ddfad49
git: Decommission libgit2 Unmanaged Transport
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-08-09 13:47:48 +01:00
Paulo Gomes e3c7aef350
Update dependencies
- k8s.io/api to version 0.24.3.
- k8s.io/apimachinery to version 0.24.3.
- k8s.io/client-go to version 0.24.3.
- github.com/fluxcd/image-reflector-controller/api to version 0.20.0.
- github.com/fluxcd/source-controller to version 0.26.0.
- k8s.io/* to version v0.24.3.
- k8s.io/kube-openapi to version v0.0.0-20220803164354-a70c9af30aea.
- github.com/ProtonMail/go-crypto to version v0.0.0-20220730123233-d6ffb7692adf.
- sigs.k8s.io/kustomize/kyaml to version v0.13.9.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-08-09 13:04:40 +01:00
Stefan Prodan 34a10c01a9
Merge pull request #411 from pjbgf/musl-free
Remove MUSL and enable threadless libgit2 support
2022-08-01 12:03:19 +03: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 11851a0397
Merge pull request #410 from pjbgf/early-eof
Enrich `early EOF` error message
2022-07-26 11:41:25 +01:00
Paulo Gomes 5ccda9c86c
Update dependencies
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-26 11:17:22 +01:00
Paulo Gomes f51050e8c0
Enrich 'early EOF' error message
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-26 11:17:12 +01:00
Paulo Gomes d293828495
build: Add make env
The new make target creates an env file that can be
used for debugging purposes.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-20 20:08:00 +01:00
Paulo Gomes 46e4f99641
Merge pull request #409 from pjbgf/release-v0.23.5
Release v0.23.5
2022-07-15 18:11:05 +01:00
Paulo Gomes 3ad3d332f9
Release v0.23.5
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-15 16:29:36 +01:00
Paulo Gomes 1c640da196
Merge pull request #408 from pjbgf/update-deps
Update dependencies
2022-07-15 16:24:38 +01:00
Paulo Gomes 91787a8e6d
Update dependencies
- github.com/ProtonMail/go-crypto to version v0.0.0-20220714114130-e85cedf506cd.
- github.com/fluxcd/image-reflector-controller/api to version 0.19.3.
- github.com/fluxcd/source-controller to version 0.25.10.
- github.com/fluxcd/source-controller/api to version 0.25.10.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-07-15 15:58:08 +01:00
Paulo Gomes 6fd701dc6e
Merge pull request #407 from fluxcd/libgit2-1.3.2
Update libgit2 to v1.3.2
2022-07-14 14:57:49 +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