image-automation-controller
image-automation-controller copied to clipboard
image-automation-controller commits symlink
Hello,
image-automation-controller commits the symlink when the following operation is performed.
- image-automation-controller detects image updates, checks out from the master branch and pushes to the sample-merge branch.
- Create and merge a PR from the sample-merge branch to the master branch.
- The developer checks out the feature branch from the master branch and pushes the file containing the symlink to the feature branch.
- Create and merge PR from feature branch to master branch
- Application image is updated
- image-automation-controller detects image updates, checks out from the master branch and pushes to the sample-merge branch.
At this time, the symlink committed by the developer in step 3 is pushed to the sample-merge branch.
Here is the flux configuration we are using
flux version
flux: v0.38.2
image-automation-controller: v0.36.1
image-reflector-controller: v0.30.0
kustomize-controller: v1.1.0
notification-controller: v1.1.0
source-controller: v1.1.1
ImageUpdateAutomation
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
name: sample-api
spec:
interval: 5m0s
sourceRef:
kind: GitRepository
name: sample-api
namespace: sample
git:
checkout:
ref:
branch: master
commit:
author:
email: [email protected]
name: fluxbot
messageTemplate: 'Automated image update'
push:
branch: sample-merge
update:
path: ./k8s/prd/sample-api
strategy: Setters