GitOps Toolkit controller that patches container image tags in Git
Go to file
Michael Bridgen 172dec486c Test SSH as well as HTTP access to git
This commit rearranges update tests so that those that check that
updates are made can be run against a git server using SSH as well as
HTTP.

The local clone, used to provoke automated updates and to check
results, still uses HTTP. Those operations are not under test.

libgit2 wants to be asked for authentication when using SSH, and will
balk if it's not requested by the server. To avoid that, auth must be
switched on for the git test server.

This also switches auth on for HTTP, so it's necessary to use a git
URL that includes credentials for setting things up with a local
clone. I have also used that URL for the git-over-HTTP tests -- it's
arguable whether it's necessary to test that works, here.

Signed-off-by: Michael Bridgen <michael@weave.works>
2021-02-11 13:44:20 +00:00
.github Use container with libgit2 for CI tests 2021-01-14 14:19:22 +01:00
api Update fluxcd/pkg/runtime to v0.8.0 2021-01-21 19:57:12 +02:00
config Update Alpine to v3.13 2021-02-08 11:36:57 +02:00
controllers Test SSH as well as HTTP access to git 2021-02-11 13:44:20 +00:00
docs Update API refs 2021-01-20 13:59:15 +00:00
hack Add target for API docs generation to Makefile 2020-11-30 14:17:03 +00:00
pkg Update to kyaml 0.10.5 2021-01-13 16:46:14 +00:00
.gitignore Test controller to the point of committing changes 2020-07-23 18:20:35 +01:00
CHANGELOG.md Release v0.4.0 2021-01-22 12:40:22 +01:00
CODE_OF_CONDUCT.md Add license, DCO and COC 2020-08-11 10:26:03 +03:00
CONTRIBUTING.md Make the API package a dedicated module 2020-11-19 12:16:17 +01:00
DCO Add license, DCO and COC 2020-08-11 10:26:03 +03:00
Dockerfile Use musl and libgit2 packages from v3.13 branch 2021-02-10 22:34:38 +01:00
LICENSE Add license, DCO and COC 2020-08-11 10:26:03 +03:00
MAINTAINERS Note maintainers shared from fluxcd/flux2 2020-11-27 10:46:57 +00:00
Makefile Update fluxcd/pkg/runtime to v0.8.0 2021-01-21 19:57:12 +02:00
PROJECT Change package name and fixup imports and paths 2020-08-10 18:09:57 +01:00
README.md Document libgit2 requirement in README 2021-01-14 14:19:22 +01:00
go.mod Test SSH as well as HTTP access to git 2021-02-11 13:44:20 +00:00
go.sum Test SSH as well as HTTP access to git 2021-02-11 13:44:20 +00:00
main.go Enable pprof endpoints on metrics server 2021-02-07 12:52:14 +01:00

README.md

Image automation controller

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/CONTRIBUTING.md#installing-required-dependencies for instructions on how to install libgit2.