fluxcd / image-automation-controller

GitOps Toolkit controller that patches container image tags in Git
https://fluxcd.io
Apache License 2.0
155 stars 67 forks source link

Get repository content from source-controller #347

Open nonylene opened 2 years ago

nonylene commented 2 years ago

Currently image-automation-controller clones git repositories from upstream server (i.e. github.com) at a specified automation interval. This tends to lead high-frequent git requests to upstream and some clone errors from upstream perhaps for reasons of something like rate-limit.

If image-automation-controller could get repository content from source-controller for periodically checks, like kustomize-controller does, we may be able to reduce git clones from upstream and even more adjust the interval for cloning with GitRepository resource . Is there a way to do this?

pjbgf commented 2 years ago

Hey @nonylene thank you for your first issue at Flux! :tada:

Conceptually, I can understand the motivation for making source-controller the source of truth for such data within the cluster. But I can see a few challenges with that approach:

Based on the points above, we may have quicker wins in terms of optimisations that may easier to achieve. For example some of the points raised on https://github.com/fluxcd/image-automation-controller/issues/271, which I can see you are also involved.