GitOps Toolkit controller that scans container registries
Go to file
Michael Bridgen 4e5c89ae18 Respect the reconcileAt annotation
The GOTK controllers all use an annotation to trigger syncing outside
of the schedule (e.g., when a webhook is indicates a new
revision). This commit makes the ImageRepository controller respect
the annotation, by checking it when examining an image repo object.

This works a little different to the other controllers, which tend to
assume that any incoming event means a sync is due. The image
reflector controller uses the ChangedPredicate to filter incoming
evetns, as they do, but goes further to check the annotation and
otherwise, the scheduled scan time.
2020-10-19 13:52:36 +01:00
.github/workflows Merge pull request #32 from idvoretskyi/idvoretskyi-fossa 2020-10-08 18:29:39 +01:00
api Merge pull request #27 from fluxcd/api-pkg 2020-10-08 18:33:55 +01:00
config Sync generated CRD via 'make manifests' 2020-09-02 08:02:00 +01:00
controllers Respect the reconcileAt annotation 2020-10-19 13:52:36 +01:00
hack Reassign copyright to Flux project 2020-08-10 16:07:09 +01:00
.gitignore Ignore notes scratch file 2020-07-20 12:45:06 +01:00
CODE_OF_CONDUCT.md Add DCO, CoC and contributing docs 2020-08-11 10:27:03 +03:00
CONTRIBUTING.md Add DCO, CoC and contributing docs 2020-08-11 10:27:03 +03:00
DCO Add DCO, CoC and contributing docs 2020-08-11 10:27:03 +03:00
Dockerfile Remove the arch from the image go build 2020-10-08 16:03:14 +01:00
LICENSE Create LICENSE 2020-07-08 07:28:44 +01:00
MAINTAINERS Add DCO, CoC and contributing docs 2020-08-11 10:27:03 +03:00
Makefile Make the api package a dedicated module 2020-08-20 10:48:16 +02:00
PROJECT Change go module and rewrite imports 2020-08-10 16:10:50 +01:00
README.md Change go module and rewrite imports 2020-08-10 16:10:50 +01:00
go.mod Respect the reconcileAt annotation 2020-10-19 13:52:36 +01:00
go.sum Respect the reconcileAt annotation 2020-10-19 13:52:36 +01:00
main.go Configure events dispatching 2020-08-11 11:19:03 +03:00

README.md

Image (metadata) reflector controller

This is an attempt to build controllers along the lines set out in https://squaremo.dev/posts/gitops-controllers/.

This repository implements the image metadata reflector controller, which scans container image repositories and reflects the metadata, in Kubernetes resources. The sibling repository image-automation-controller implements the automation controller, which acts on the reflected data (e.g., a new image version) by updating the image references used in files in git.