image-reflector-controller icon indicating copy to clipboard operation
image-reflector-controller copied to clipboard

Flux image reflector is not able to use Jfrog artifactroy

Open gabbler97 opened this issue 1 year ago • 1 comments

We discovered the following issue when we used the Flux image reflector controller with JFrog Artifactory:
The image controller tries to list the tags using this URL:
https://my.artifactory.com/v2/artifactory/path_to_the_tags/subpath_to_the_tags/tags/list?n=1000
It is caused because of the design of the Flux and JFrog Artifactory together:
https://github.com/fluxcd/image-reflector-controller/blob/cc43c0a2909758bb27b18a9343da98214d9dc872/internal/test/registry.go#L116
Instead of this the following URL is reachable and has the same functionality: https://my.artifactory.com/artifactory/api/docker/path_to_the_tags/v2/subpath_to_the_tags/tags/list
The JFrog has not implemented this API endpoint as the public image repositories.
Here we found a possible workaround.
https://help.octopus.com/t/connecting-an-external-docker-registry-feed-to-artifactory/24825
Do you have any other idea how to solve this?
We do not want to build a custom proxy each time the image reflector is used by different teams.
Thank you in advance!

gabbler97 avatar Jul 17 '23 12:07 gabbler97