Comments (5)
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.
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.
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.
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.
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)
- [RFC-004] Add `.spec.insecure` to `ImageRepository`
- Higher CPU usage without load
- ImagePolicy not able to correctly parse the image tags HOT 2
- Image repository port pruned from reflection request after 1000+ images HOT 3
- image-reflector-controller 0.40.0 breaking change gives no room for upgrading transparently HOT 2
- Confusing error message about successful image scan HOT 3
- ImageRepository fails to authenticate with Gitlab Repository HOT 5
- Add reconciler sharding capability based on label selector
- Feature request: Add policy for selecting as latest any alias tag that matches the `latest` tag HOT 5
- Failed to authenticate to ACR HOT 5
- unexpected status code 401 Unauthorized: Not Authorized HOT 2
- Unauthorized 401 for ImageRepository resources for ECR HOT 2
- Flux image reflector is not able to use Jfrog artifactroy HOT 1
- ImageRepository status.lastScanResult.latestTags not sorted acc. to semver HOT 4
- Add integration tests for ImagePolicy
- Add reconciliation interval to ImagePolicy
- Success reported on ImagePolicy when ImageRepository stalled
- One thing about my family 000jpkid HOT 1
- bug(helm/aws): unknown build error: failed to get credential from 'aws': not found, ResolveEndpointV2
- Controller shutdown doesn't wait for reconciles to finish HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-reflector-controller.