fluxcd / flux

Successor: https://github.com/fluxcd/flux2
https://fluxcd.io
Apache License 2.0
6.9k stars 1.08k forks source link

Flux doesn't update image from ECR after a new image was pushed #3529

Closed avdeev-a closed 3 years ago

avdeev-a commented 3 years ago

Describe the bug

I use Flux v2. After a new docker images was build and pushed in to AWS ECR, flux did,'t update deployment image. The image tag is the same but hashes are different.

To Reproduce

Steps to reproduce the behaviour:

  1. Install Flux for gitlab (with token) flux bootstrap gitlab \ --components-extra=image-reflector-controller,image-automation-controller \ --hostname=gitlab.local \ --token-auth \ --owner=platform \ --repository=kube-dev \ --branch=main \ --path=dev
  2. Run Gitlab pipeline to build docker images and push it into ECR.
  3. Wait for image updates.
  4. Maybe i do something wrong?

Expected behavior

Update deployment image with a new hash and the same tag.

Logs No errors in logs.

Additional context

kingdonb commented 3 years ago

Thanks for the report. This repo is for Flux v1.

Have you found the image update guide for Flux v2? There are more steps than what you described here, you need to create ImageUpdateAutomation and ImageRepo as well as some other associated resources, then add ImagePolicy tags in comments to the YAML manifests that you wish to be updated.

avdeev-a commented 3 years ago

@kingdonb Thank you for updates! Closed.