GitOps Toolkit controller that patches container image tags in Git
Go to file
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
.github/workflows Upgrade libgit2 and fix static builds 2022-02-10 16:28:41 +05:30
api Update source-controller packages to 0.21.0 2022-01-26 17:18:38 +02:00
config Release v0.20.0 2022-02-01 10:38:11 +02:00
controllers Add flag to disable cross-namespace referencing 2022-01-28 08:32:21 +01:00
docs Add flag to disable cross-namespace referencing 2022-01-28 08:32:21 +01:00
hack Upgrade libgit2 and fix static builds 2022-02-10 16:28:41 +05:30
pkg Update kyaml to v0.13.0 2022-01-26 15:56:25 +01:00
.dockerignore Update github.com/libgit2/git2go to v31.6.1 2021-10-08 16:26:15 +02:00
.gitignore Upgrade libgit2 and fix static builds 2022-02-10 16:28:41 +05:30
.goreleaser.yaml Publish SBOM and sign release artifacts 2022-01-25 15:24:18 +02:00
ATTRIBUTIONS.md Upgrade libgit2 and fix static builds 2022-02-10 16:28:41 +05:30
CHANGELOG.md Release v0.20.0 2022-02-01 10:38:11 +02:00
CODE_OF_CONDUCT.md Add license, DCO and COC 2020-08-11 10:26:03 +03:00
DCO Add license, DCO and COC 2020-08-11 10:26:03 +03:00
DEVELOPMENT.md Update dev docs 2022-01-24 13:33:25 +00:00
Dockerfile Upgrade libgit2 and fix static builds 2022-02-10 16:28:41 +05:30
LICENSE Add license, DCO and COC 2020-08-11 10:26:03 +03:00
MAINTAINERS Retire squaremo as a maintainer 2022-02-02 10:30:51 +00:00
Makefile Upgrade libgit2 and fix static builds 2022-02-10 16:28:41 +05:30
PROJECT Graduate v1alpha2 API to v1beta1 2021-06-28 11:26:59 +01:00
README.md Fix broken link in README 2021-12-15 16:12:56 -05:00
go.mod Release v0.20.0 2022-02-01 10:38:11 +02:00
go.sum Release v0.20.0 2022-02-01 10:38:11 +02:00
main.go Add flag to disable cross-namespace referencing 2022-01-28 08:32:21 +01:00

README.md

Image automation controller

CII Best Practices report license release

This controller automates updates to YAML when new container images are available.

Its sibling, image-reflector-controller, scans container image repositories and reflects the metadata in Kubernetes resources. This controller reacts to that image metadata by updating YAML files in a git repository, and committing the changes.

How to install it

Please see the installation and use guide.

How to work on it

The shared library libgit2 needs to be installed to test or build locally. The version required corresponds to the version of git2go (which are Go bindings for libgit2), according to this table.

See https://github.com/fluxcd/source-controller/blob/main/DEVELOPMENT.md#installing-required-dependencies for instructions on how to install libgit2.