Commit Graph

11 Commits

Author SHA1 Message Date
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
Michael Bridgen 6f46cbb331 Change go module and rewrite imports 2020-08-10 16:10:50 +01:00
Michael Bridgen f0991c829b Reassign copyright to Flux project 2020-08-10 16:07:09 +01:00
Michael Bridgen 143d53dc32 Update module and imports 2020-07-18 15:12:14 +01:00
Michael Bridgen 493e513630 Test simplest policy case 2020-07-14 12:34:30 +01:00
Michael Bridgen 6658e4926a Add ImagePolicy type
kubebuilder create api --group image --version v1alpha1 --kind ImagePolicy
2020-07-12 18:30:19 +01:00
Michael Bridgen 6ae6561b8b Test that the tags for a repo are scanned
In this commit I use the test registry implementation to check that
the controller will scan the tags of an image. This needs a bit more
scaffolding, since the test registry doesn't handle /tags/list.
2020-07-12 14:08:16 +01:00
Michael Bridgen 31152814cc Separate test from suite setup/teardown
.. in preparation for having more tests, and more setup and teardown
(specifically: setting a local container registry up).
2020-07-12 12:11:02 +01:00
Michael Bridgen 91c342d288 Jiggle things around until there's a passing test 2020-07-09 21:20:04 +01:00
Michael Bridgen 777ec34a86 Implement minimal ImageRepository spec
This adds an image name to the ImageRepository type, and resolves it
in the controller, just to show it doing something.
2020-07-08 22:13:35 +01:00
Michael Bridgen a628d482d5 Add ImageRepository type
kubebuilder create api --group image \
      --version v1alpha1 --kind ImageRepository
2020-07-08 07:49:00 +01:00