Commit Graph

787 Commits

Author SHA1 Message Date
Paulo Gomes 2fe47bbfdf
build: Remove unused scripts
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-09 13:43:23 +00:00
Paulo Gomes b396dce1c6
libgit2: Update documentation
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-09 13:43:22 +00:00
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 7a05f4856c
libgit2: Remove references to libgit2 from code
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-09 11:30:55 +00:00
Paulo Gomes 38d76cc407
libgit2: Migrate tests to go-git
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-09 11:27:51 +00:00
Paulo Gomes 5453088b02
Merge pull request #463 from fluxcd/shallow
Add GitShallowClone feature
2022-12-07 10:37:23 +00:00
Paulo Gomes 5475da4475
Document GitShallowClone and GitForcePushBranch#
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-06 15:37:16 +00:00
Paulo Gomes ebabb47510
Enable shallow clone by default
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-06 15:22:35 +00:00
Paulo Gomes e846e29458
Add GitShallowClone feature
This feature enables the use of shallow clones when pulling source from
Git repositories.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-12-06 15:22:34 +00:00
Paulo Gomes 6d639f3bcd
Merge pull request #465 from pjbgf/postbuild
build: Link libgit2 via LIB_FUZZING_ENGINE
2022-11-25 17:23:06 +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 6a0e0dedeb
Merge pull request #464 from pjbgf/postbuild
build: Add postbuild script for fuzzing
2022-11-25 10:23:49 +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 7fd2c7cbb3
Merge pull request #462 from pjbgf/fix-broken-fuzz
build: Fix cifuzz and improve fuzz tests' reliability
2022-11-23 18:09:00 +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 43b99c65b6
Merge pull request #461 from pjbgf/release-0.27.0
Release v0.27.0
2022-11-21 11:14:44 +00:00
Paulo Gomes 3e0c3e04bb
Release v0.27.0
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-21 10:49:42 +00:00
Paulo Gomes 7bd4886a79
Merge pull request #460 from pjbgf/upd-deps
Update dependencies
2022-11-21 10:09:12 +00:00
Paulo Gomes ebbf83aa10
Update dependencies
- github.com/fluxcd/image-reflector-controller/api 0.23.0
- github.com/fluxcd/pkg/apis/event 0.2.0
- github.com/fluxcd/pkg/runtime 0.24.0
- github.com/google/go-containerregistry 0.12.1
- golang.org/x/crypto 0.3.0
- k8s.io/api 0.25.4
- k8s.io/client-go 0.25.4
- sigs.k8s.io/kustomize/kyaml 0.13.10
- github.com/fluxcd/pkg/apis/meta 0.18.0
- github.com/fluxcd/source-controller/api 0.32.1
- k8s.io/apimachinery 0.25.4

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-18 17:01:42 +00:00
Stefan Prodan c0f9593aad
Merge pull request #456 from fluxcd/api-cleanup
Remove deprecated alpha APIs
2022-11-16 17:44:26 +02:00
Stefan Prodan 2ce27a70fb
Remove deprecated alpha APIs
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-11-16 17:22:51 +02:00
Paulo Gomes 92603f3295
Merge pull request #459 from aryan9600/bump-git-v0.7.0
bump pkg/git, pkg/git/gogit and pkg/git/libgit2
2022-11-16 14:54:33 +00:00
Sanskar Jaiswal 1cacafa5fc bump pkg/git, pkg/git/gogit and pkg/git/libgit2
* Bump `pkg/git` to `v0.7.0`
* Bump `pkg/git/gogit` to `v0.2.0`
* Bump `pkg/git/libgit2` to `v0.3.0`

Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-11-16 20:00:26 +05:30
Paulo Gomes 1b8d307a6d
Merge pull request #458 from pjbgf/remove-nsswitch
Remove nsswitch.conf creation
2022-11-14 18:38:37 +00:00
Paulo Gomes 564b0b5c7e
Remove nsswitch.conf creation
Since 11-11-2022, the alpine:3.16 includes that file on its
base image. More information can be found at:
https://git.alpinelinux.org/aports/commit/?id=348653a9ba0701e8e968b3344e72313a9ef334e4

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-14 17:50:49 +00:00
Stefan Prodan 93055b0c79
Merge pull request #455 from fluxcd/event-v1beta1
Use Flux Event API v1beta1
2022-11-09 12:37:39 +02:00
Stefan Prodan cad8850c11
Use Flux Event API v1beta1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-11-09 12:11:43 +02:00
Paulo Gomes b59fffa14e
Merge pull request #452 from pjbgf/feature-nolibgit2
gogit: Add new ForceGoGitImplementation FeatureGate
2022-11-08 09:58:41 +00:00
Paulo Gomes 0191d6b4cc
gogit: Add new ForceGoGitImplementation FeatureGate
ForceGoGitImplementation ignores the value set for gitImplementation
and ensures that go-git is used for all GitRepository objects.
This can be used to confirm that Flux instances won't break if/when
the libgit2 implementation was to be deprecated.

When enabled, libgit2 won't be initialized, nor will any git2go cgo
code be called.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-04 11:16:26 +00:00
Paulo Gomes 4e1d1216dc
Merge pull request #453 from fluxcd/shallow-force
Add support for force push
2022-11-04 11:14:04 +00:00
Paulo Gomes 842c6d78c4
Add support for Git force push
Automations using a different push branch can now
enable force push to ensure that it gets refreshed
with the latest version of the branch used for the
clone operation.

Initially this was going to be added in combination
with Shallow clones for the `go-git` implementation.
However, force push is required for feature completeness
whilst Shallow clones are mostly an optimisation, and
will therefore be implemented at a later stage.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-02 13:35:36 +00:00
Paulo Gomes d293039e5d
Merge pull request #451 from pjbgf/git-refactoring
Refactor Git operations and introduce `go-git` support for Azure DevOps and AWS CodeCommit
2022-11-02 12:46:25 +00:00
Paulo Gomes b00625bffc
Remove redundant repoAccess
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-11-01 12:42:48 +00:00
Paulo Gomes 32b8e78f6c
Bump go-git to enable multi_ack
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-10-27 19:30:16 +01:00
Sanskar Jaiswal 7c6a117523
use gitrepo implementation for git ops
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-10-27 14:43:03 +01: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
Sanskar Jaiswal 0296f7acf0
refactor reconciler to use fluxcd/pkg/git
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2022-10-27 14:42:13 +01:00
Paulo Gomes a7dba5331b
Merge pull request #449 from pjbgf/release-0.26.1
Release v0.26.1
2022-10-21 16:35:45 +01:00
Paulo Gomes 0084acaa37
Release v0.26.1
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-10-21 16:14:34 +01:00
Paulo Gomes 23ce9b3f92
Merge pull request #448 from fluxcd/kube-1.25.3
Update dependencies
2022-10-21 16:06:53 +01:00
Stefan Prodan 1e89d03c14
Update dependencies
- `k8s.io/*` v0.25.3
- `fluxcd/pkg/runtime` v0.22.0
- `fluxcd/source-controller/api` v0.31.0
- `fluxcd/image-reflector-controller/api` v0.22.1
- `golang.org/x/text` v0.4.0 (fix CVE-2022-32149)

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-10-21 17:48:42 +03:00
Stefan Prodan d872518947
Merge pull request #443 from pjbgf/release-v0.26.0
Release v0.26.0
2022-09-29 19:33:08 +03:00
Paulo Gomes dee4b22ce1
Release v0.26.0
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-29 17:16:34 +01:00
Paulo Gomes adaa4d87f8
Merge pull request #444 from pjbgf/update-deps
Update dependencies
2022-09-29 17:16:14 +01:00
Paulo Gomes 8ef121874d
Update dependencies
- github.com/fluxcd/source-controller to version 0.30.0.
- github.com/fluxcd/source-controller/api to version 0.30.0.
- k8s.io/kube-openapi to version 0.0.0-20220928191237-829ce0c27909.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-29 17:02:48 +01:00
Paulo Gomes 8828ca321e
Merge pull request #441 from pjbgf/bump-darwin-ci
build: Bump CI to macos-11
2022-09-29 10:01:23 +01:00
Paulo Gomes a88b62d72a
build: Bump CI to macos-11
The previous version has been deprecated and should not
be used going forwards.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-29 07:19:35 +01:00
Paulo Gomes d9da9def93
Merge pull request #442 from pjbgf/update-git2go
Update dependencies
2022-09-29 06:53:16 +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 08ee794448
build: Skip cosign verification for CI
The libgit2 libraries are downloaded and verified before
some of the make targets are executed. This assures the
provenance of such files before using them and is very
important specially for end users running such tests on
their machines.

Note that has been disabled specially due to recent issues
we experienced at CI which can be seen in:
https://github.com/fluxcd/source-controller/issues/899

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-09-29 06:27:29 +01:00