Hi team,
Thanks for your help so far. I am stuck at implementing a use case where by the image update automation policy is not applying the changes to the git.
When I run the command as below, I can see that flux was able to detect a new version in the registry but never committed the same to git.
(base) sanj@Sanjs-Air app-cluster % flux get image policy staging
NAME READY MESSAGE LATEST IMAGE
staging True Latest image tag for 'sanjvij01/getting-started' resolved to: v3.0.2 sanjvij01/getting-started:v3.0.2
(base) sanj@Sanjs-Air app-cluster % kubectl get deployment/getting-started-image -n staging -oyaml | grep 'image'
name: getting-started-image
selfLink: /apis/apps/v1/namespaces/staging/deployments/getting-started-image
- image: sanjvij01/getting-started:v3.0.1
imagePullPolicy: IfNotPresent
message: ReplicaSet "getting-started-image-554964548d" has successfully progressed.
my image update automation file looks like below. I have a feeling I have done something in which case feel free to point.
apiVersion: image.toolkit.fluxcd.io/v1alpha1
kind: ImageUpdateAutomation
metadata:
name: flux-system
namespace: flux-system
spec:
checkout:
branch: master
gitRepositoryRef:
name: flux-staging
commit:
authorEmail: sanjvij01@gmail.com
authorName: sanjvij
messageTemplate: '{{range .Updated.Images}}{{println .}}{{end}}'
interval: 1m0s
push:
branch: master
update:
path: ./
strategy: Setters
Let me know if you need me to provide any further info.
Hi team,
Thanks for your help so far. I am stuck at implementing a use case where by the image update automation policy is not applying the changes to the git.
When I run the command as below, I can see that flux was able to detect a new version in the registry but never committed the same to git.
(base) sanj@Sanjs-Air app-cluster % flux get image policy staging
NAME READY MESSAGE LATEST IMAGE
staging True Latest image tag for 'sanjvij01/getting-started' resolved to: v3.0.2 sanjvij01/getting-started:v3.0.2
(base) sanj@Sanjs-Air app-cluster % kubectl get deployment/getting-started-image -n staging -oyaml | grep 'image'
name: getting-started-image
selfLink: /apis/apps/v1/namespaces/staging/deployments/getting-started-image
- image: sanjvij01/getting-started:v3.0.1
imagePullPolicy: IfNotPresent
message: ReplicaSet "getting-started-image-554964548d" has successfully progressed.
my image update automation file looks like below. I have a feeling I have done something in which case feel free to point.
apiVersion: image.toolkit.fluxcd.io/v1alpha1
kind: ImageUpdateAutomation
metadata:
name: flux-system
namespace: flux-system
spec:
checkout:
branch: master
gitRepositoryRef:
name: flux-staging
commit:
authorEmail: sanjvij01@gmail.com
authorName: sanjvij
messageTemplate: '{{range .Updated.Images}}{{println .}}{{end}}'
interval: 1m0s
push:
branch: master
update:
path: ./
strategy: Setters
Let me know if you need me to provide any further info.