Michael Bridgen
7ab3632b1b
Rename ImageRepository -> ImageRepositoryRef
...
.. to follow gitops-toolkit convention.
2020-08-05 19:58:57 +01:00
Michael Bridgen
639007c659
Merge pull request #14 from squaremo/rename-default-branch
...
Follow up to changing the default branch to 'main'
2020-07-31 15:29:00 +01:00
Michael Bridgen
387ed23736
Merge pull request #13 from hiddeco/spec/domain-change
...
Change CRDs domain to 'image.toolkit.fluxcd.io'
2020-07-31 15:26:13 +01:00
Michael Bridgen
f8add9556d
Change branch trigger to new default 'main'
...
.. and give the action from fluxcd/pkg a version, rather than getting
it from a branch at all.
2020-07-31 15:22:27 +01:00
Hidde Beydals
c590c94ec1
Change CRDs domain to 'image.toolkit.fluxcd.io'
2020-07-31 15:03:28 +02:00
Michael Bridgen
5405f23940
Merge pull request #10 from squaremo/better-config
...
Make patches work with kustomize build
2020-07-27 15:46:39 +01:00
Michael Bridgen
95c752ac7d
Make patches work with kustomize build
...
In the most recent kustomize version, the patches in config/default/
fail to apply. (`kubectl apply -k` does not use the most kustomize
version, and seems to cope fine.)
2020-07-27 15:41:10 +01:00
Michael Bridgen
3ec2a4a66e
Merge pull request #9 from squaremo/fixup-config
...
Standardise namespace used in config
2020-07-27 13:03:09 +01:00
Michael Bridgen
16bf72edfa
Standardise namespace used in config
...
- add a namespace resource at the top (used to be in manager/)
- replace original namespace `image-update-system` with
`image-reflector-system`
- don't rely on a name prefix; it's unnecessary and confusing
2020-07-27 12:59:10 +01:00
Michael Bridgen
667257facd
Merge pull request #8 from squaremo/basic-ci
...
Base CI that runs tests
2020-07-24 18:05:40 +01:00
Michael Bridgen
503780077a
Base CI that runs tests
2020-07-24 12:28:08 +01:00
Michael Bridgen
b038a39ba8
Use renamed image in config
2020-07-21 13:53:51 +01:00
Michael Bridgen
68700c2293
Change name of deployment too
2020-07-21 13:49:23 +01:00
Michael Bridgen
e76b0d696f
Merge pull request #7 from squaremo/better-config
...
Give config and image less generic names
2020-07-21 12:38:18 +01:00
Michael Bridgen
f6cbe416fb
Give config and image less generic names
2020-07-21 12:27:22 +01:00
Michael Bridgen
5e33cc7c4b
Ignore notes scratch file
2020-07-20 12:45:06 +01:00
Michael Bridgen
4f918bf22d
Correct typo in title
2020-07-19 07:24:27 +01:00
Michael Bridgen
031862e896
Merge pull request #6 from squaremo/rename
...
Rename image-update -> image-reflector-controller
2020-07-18 15:16:58 +01:00
Michael Bridgen
9fe5e63945
Adapt README to new name and scope
2020-07-18 15:12:43 +01:00
Michael Bridgen
143d53dc32
Update module and imports
2020-07-18 15:12:14 +01:00
Michael Bridgen
fe6016d2c8
Merge pull request #4 from squaremo/imagepolicy
...
Image policy type and controller
2020-07-14 12:37:50 +01:00
Michael Bridgen
493e513630
Test simplest policy case
2020-07-14 12:34:30 +01:00
Michael Bridgen
e0e1491970
Recalculate policy when a repository changes
...
This adds a watch for ImageRepository so that policies will be
recalculated when the repository is scanned.
2020-07-14 12:34:30 +01:00
Michael Bridgen
a2b0bd4ed7
Calculate latest image for (semver) policy
...
This adds the details of calculating the latest image for a policy. It
relies on the ImageRepository and ImagePolicy controllers having a
shared database of image tags. Usually, this sort of thing would be
objects in the Kubernetes database; but since tags (and images) can
number in the tens of thousands per image, I'm using a separate
database. For the minute, it's just a map.
2020-07-14 12:34:30 +01:00
Michael Bridgen
46cd9cbab1
Give ImagePolicy fields to specify the desired policy
2020-07-12 19:07:39 +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
323711f089
Merge pull request #3 from squaremo/some-scanning
...
Some scanning
2020-07-12 18:26:49 +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
c9c5c4ad63
Actually scan the image repository
...
This commit adds a little code to scan the image repository given in
an ImageRepository resource, and report the (number of) tags there. It
does so anonymously, so it'll only work for public repos for the
minute.
The next step is to introduce ImagePolicy resources and figure out the
interaction with them -- e.g., if they only care about semver, you
might only need to get the tags.
2020-07-11 09:37:45 +01:00
Michael Bridgen
f84005f2b0
Merge pull request #2 from squaremo/skeleton-types
...
Skeleton ImageRepository type and controller
2020-07-09 21:23:00 +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
Michael Bridgen
13d08740d5
Add copyright notice to boilerplate
2020-07-08 07:34:23 +01:00
Michael Bridgen
fe3b8b210e
kubebuild init
2020-07-08 07:32:12 +01:00
Michael Bridgen
36714c09a3
Merge pull request #1 from squaremo/add-license-1
...
Create LICENSE
2020-07-08 07:29:14 +01:00
Michael Bridgen
9d3e2d5248
Create LICENSE
2020-07-08 07:28:44 +01:00
Michael Bridgen
4fbb9ea925
Initial revision
2020-07-08 07:26:21 +01:00