-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public registry proxy not getting the latest Chart versions anymore? #3
Comments
I restarted the service. and that latest indey.yaml is now fetched. This seems to be a bug to me. maybe @tpoxa can look into that. |
Wow, that was quick, thanks a lot :-) |
It seems that it is out of date again. |
I was looking through the code and it seems that the index.yaml gets cached for a very very long time. helm-charts-oci-proxy/registry/manifest/charts.go Lines 239 to 244 in c564416
I'm not a 100% sure but I think this is what happens: the total cache cost is set to 100 million (somewhere in serve.go) and each index.yaml costs 10. So, unless we fetch a 10 million different registries nothing will get thrown out because in the success case there is no TTL. There is no info about contributing (or I haven't found it), so this is just for your information. |
Hello everybody
Thanks for the proxy - great idea :-) I was using the public registry proxy and just wanted to update an Argo CD deployment when I found, that the registry does not have the latest Charts available (I know this might not be the right place to ask, but I didn't see another way to get in touch with you - sorry about that).
When I do
helm fetch oci://chartproxy.container-registry.com/argoproj.github.io/argo-helm/argo-cd
it downloads the version 5.42.1 even though the latest is 5.45.0So I tried
helm fetch oci://chartproxy.container-registry.com/argoproj.github.io/argo-helm/argo-cd --version 5.45.0
and it returns "Error: chartproxy.container-registry.com/argoproj.github.io/argo-helm/argo-cd:5.45.0: not found".I checked the tag list here https://chartproxy.container-registry.com/v2/argoproj.github.io/argo-helm/argo-cd/tags/list and it is not listed.
Maybe you could give it a nudge? Anyway, thanks again for the service.
The text was updated successfully, but these errors were encountered: