Michael Bridgen
c7d5511f1e
Start test scaffolding
...
- start a test git server (thanks Stefan and Hidde!)
- initialise it from a fixture (directory with repo contents)
This is the basics to build on.
2020-07-23 18:20:35 +01:00
Michael Bridgen
c4e94d2b17
Change name of deployment
2020-07-23 18:20:35 +01:00
Michael Bridgen
71cf370dc8
Commit and push changes after running update
...
This makes the controller commit changes and push to the origin, when
it's run the update. There's some new fields in the
ImageUpdateAutomation type for specifying the commit message and
author.
2020-07-23 18:20:35 +01:00
Michael Bridgen
bae999a03b
Use the git package from source-controller
...
It's now exported, so I can use that instead of copypesto.
2020-07-23 18:20:35 +01:00
Michael Bridgen
739f3c1770
Add update strategy that uses image policy
...
Just to get points on the board, this gives ImageUpdateAutomation an
`update` field into which you can plug the name of an ImagePolicy
resource (from the image reflector controller). The idea is that the
automation will then replace the image in the policy, anywhere it's
used, with its latest version.
2020-07-23 18:20:35 +01:00
Michael Bridgen
c5ae8f8812
Implement controller up to cloning the git repo
...
This is enough to clone the repo that's referenced in the
ImageUpdateAutomation resource. It reproduces a bunch of code from the
source-controller which is internal there, to avoid writing it from
scratch.
2020-07-23 18:20:35 +01:00
Michael Bridgen
860b831563
Manifests for ImageUpdateAutomation CRD
2020-07-23 18:20:24 +01:00
Michael Bridgen
166ad7e3aa
Refer to a git repository in ImageUpdateAutomation
...
This adds the field GitRepository in the ImageUpdateAutomation, for
referring to the git repository in which to make updates.
2020-07-23 18:14:28 +01:00
Michael Bridgen
a048169819
Add ImageUpdateAutomation type and controller
...
kubebuilder create api --group image --version v1alpha1 \
--kind ImageUpdateAutomation
2020-07-23 18:14:28 +01:00
Michael Bridgen
a527a739a7
Merge pull request #3 from squaremo/ci-test
...
Prototype GitHub Actions CI
2020-07-23 18:13:53 +01:00
Michael Bridgen
d8b85a50c2
Prototype GitHub Actions CI
2020-07-23 18:10:51 +01:00
Michael Bridgen
3e3c1e7153
Merge pull request #2 from squaremo/better-config
...
Give the image and configs less generic names
2020-07-21 12:38:24 +01:00
Michael Bridgen
258468cf14
Give the image and configs less generic names
2020-07-21 12:26:24 +01:00
Michael Bridgen
d20e803cb3
Ignore notes scratch file
2020-07-20 12:53:38 +01:00
Michael Bridgen
baf50cd4fc
Initialise controller scaffolding
...
go mod init github.com/squaremo/image-automation-controller
kubebuilder init --domain=fluxcd.io
$EDITOR hack/boilerplate.go.txt
2020-07-18 15:23:13 +01:00
Michael Bridgen
ac4cf07715
Initial revision with README
2020-07-18 15:18:39 +01:00