The GitOps Toolkit source management component
Go to file
Paulo Gomes bfa4e38b84
libgit2: dispose connections in SubTransport.Close
The average SubTransport lifecycle encompass two Actions calls. Previously,
it was attempted to share the same connection across both calls. That did
not work as some Git Servers do not support multiple sessions from the same
connection. The implementation was not fully transitioned into the
"one connection per action" model, which led to connection being leaked.

The transition to RW mutex was to avoid the unnecessary blocking in the
goroutine at the start of the second action call.

It is worth mentioning that now when the context is done,  the client level
resources (connection) will also be freed. This ensures that SSH connections
will not outlive the subtransport.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-06-08 19:39:50 +01:00
.github/workflows Update GH Actions 2022-05-26 14:57:34 +01:00
api Update dependencies 2022-06-08 10:19:05 +01:00
config Release v0.25.5 2022-06-08 13:15:41 +03:00
controllers Fix repository cache regression 2022-06-06 13:15:10 +02:00
docs Add docs on managed identity for Azure Blob 2022-06-03 10:05:31 +01:00
hack [RFC 0002] Flux OCI support for Helm (#690) 2022-05-19 14:50:16 +02:00
internal Fix sorting semver from OCI repository tags 2022-06-07 22:20:36 +02:00
pkg libgit2: dispose connections in SubTransport.Close 2022-06-08 19:39:50 +01:00
tests/fuzz Update libgit2 to 1.3.1 2022-04-14 09:59:01 +01:00
.dockerignore Download libgit2 libraries for fuzzing 2022-02-11 12:30:46 +00:00
.gitignore Update libgit2 to 1.1.1-6 2022-02-07 13:00:57 +00:00
.goreleaser.yaml Publish SBOM and sign release artifacts 2022-01-20 13:49:36 +02:00
ATTRIBUTIONS.md Update attributions 2022-04-14 09:59:02 +01:00
CHANGELOG.md Release v0.25.5 2022-06-08 13:15:41 +03:00
CODE_OF_CONDUCT.md Add governance files like DCO, MAINTAINERS, CoC 2020-04-12 23:54:35 +02:00
DCO Add governance files like DCO, MAINTAINERS, CoC 2020-04-12 23:54:35 +02:00
DEVELOPMENT.md build: let users pass test flags to `make test` 2022-04-28 06:31:45 +02:00
Dockerfile Update Alpine to v3.16 2022-05-27 10:59:41 +03:00
LICENSE Initial commit 2020-04-05 11:55:46 +03:00
MAINTAINERS Add pjbgf to Maintainers 2022-02-17 11:24:02 +00:00
Makefile tests: ignore proxy settings when running tests 2022-05-25 13:57:54 +01:00
PROJECT Introduce v1beta2 API package 2022-02-23 12:34:35 +01:00
README.md bump link to API spec 2022-06-07 10:38:16 +01:00
go.mod Release v0.25.5 2022-06-08 13:15:41 +03:00
go.sum Update dependencies 2022-06-08 10:19:05 +01:00
main.go fix docs, error handling and managed proxy auth 2022-05-27 14:01:23 +05:30

README.md

Source controller

CII Best Practices e2e report license release

The source-controller is a Kubernetes operator, specialised in artifacts acquisition from external sources such as Git, Helm repositories and S3 buckets. The source-controller implements the source.toolkit.fluxcd.io API and is a core component of the GitOps toolkit.

overview

Features:

  • authenticates to sources (SSH, user/password, API token)
  • validates source authenticity (PGP)
  • detects source changes based on update policies (semver)
  • fetches resources on-demand and on-a-schedule
  • packages the fetched resources into a well-known format (tar.gz, yaml)
  • makes the artifacts addressable by their source identifier (sha, version, ts)
  • makes the artifacts available in-cluster to interested 3rd parties
  • notifies interested 3rd parties of source changes and availability (status conditions, events, hooks)
  • reacts to Git push and Helm chart upload events (via notification-controller)