Coder Social home page Coder Social logo

Comments (5)

speedst3r avatar speedst3r commented on June 9, 2024 1

It looks like it's resolved, I am seeing over 1000 tags returned for the repositories I have configured.

$ flux get image repository tautulli
NAME            READY   MESSAGE                                 LAST SCAN                       SUSPENDED
tautulli        True    successful scan, found 1436 tags        2021-09-24T16:19:18+08:00       False

from image-reflector-controller.

speedst3r avatar speedst3r commented on June 9, 2024

Just realised you might want the repository configuration too

apiVersion: image.toolkit.fluxcd.io/v1alpha2
kind: ImageRepository
metadata:
  name: tautulli
  namespace: flux-system
spec:
  image: ghcr.io/linuxserver/tautulli
  interval: 1h0m0s
  secretRef:
    name: registry-ghcr-speedst3r

from image-reflector-controller.

bigkevmcd avatar bigkevmcd commented on June 9, 2024

It looks like it's because https://github.com/google/go-containerregistry/blob/main/pkg/v1/remote/list.go#L52 is limited to 1000

Some experimenting indicates that GHCR isn't returning Link: ... pagination links, no matter how many you ask for per https://docs.docker.com/registry/spec/api/#listing-image-tags

A small test dumping the response headers.

Fetching 100 tags...

2021/05/10 07:57:32 Fetching tags with https://ghcr.io/v2/linuxserver/tautulli/tags/list?n=100
2021/05/10 07:57:32 Header Docker-Distribution-Api-Version = [registry/2.0]
2021/05/10 07:57:32 Header Date = [Mon, 10 May 2021 06:57:32 GMT]
2021/05/10 07:57:32 Header X-Github-Request-Id = [EF03:3CE9:13E558:1B57B9:6098D95B]
2021/05/10 07:57:32 Header Content-Type = [application/json]
2021/05/10 07:57:32 Response included 100 tags

Fetching 1000 tags

2021/05/10 07:58:36 Fetching tags with https://ghcr.io/v2/linuxserver/tautulli/tags/list?n=1000
2021/05/10 07:58:36 Header Content-Type = [application/json]
2021/05/10 07:58:36 Header Docker-Distribution-Api-Version = [registry/2.0]
2021/05/10 07:58:36 Header Date = [Mon, 10 May 2021 06:58:36 GMT]
2021/05/10 07:58:36 Header X-Github-Request-Id = [EF0D:9699:35114C:41186A:6098D99C]
2021/05/10 07:58:36 Response included 1000 tags

Fetching 1500 tags

2021/05/10 07:59:12 Fetching tags with https://ghcr.io/v2/linuxserver/tautulli/tags/list?n=1500
2021/05/10 07:59:13 Header Content-Type = [application/json]
2021/05/10 07:59:13 Header Docker-Distribution-Api-Version = [registry/2.0]
2021/05/10 07:59:13 Header Date = [Mon, 10 May 2021 06:59:13 GMT]
2021/05/10 07:59:13 Header X-Github-Request-Id = [EF17:6042:3A9F95:466F85:6098D9C0]
2021/05/10 07:59:13 Response included 1088 tags

from image-reflector-controller.

speedst3r avatar speedst3r commented on June 9, 2024

And it looks like because GitHub container registry doesn't have that limitation, when you pass the n= argument to the API URL it doesn't return links to the next page.

Looks like it's waiting on distribution/distribution#3143

from image-reflector-controller.

kingdonb avatar kingdonb commented on June 9, 2024

I see that distribution/distribution#3143 was merged about 15 days ago. Does this mean there can be progress on this issue, or can it be closed? (I think it most likely still blocks on GCHR taking action, I do not know if we have any contact who works for GitHub and can keep us informed on their progress over at GitHub Container Registry, but I will check my Twitter...)

from image-reflector-controller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.