jetstack / version-checker

Kubernetes utility for exposing image versions in use, compared to latest available upstream, as metrics.
https://jetstack.io
Apache License 2.0
672 stars 76 forks source link

Error on OCI style repositories #121

Open jwitko opened 9 months ago

jwitko commented 9 months ago

Seeing the following error when version-checker attempts to check the fluent-bit repository:

time="2023-10-16T21:36:44Z" level=error msg="cr.fluentbit.io/v2/fluent/fluent-bit/manifests/2.0: failed to get manifest response for tag, skipping (404): {\"errors\":[{\"code\":\"MANIFEST_UNKNOWN\",\"message\":\"OCI index found, but accept header does not support OCI indexes\"}]}\n" client=

time="2023-10-16T21:40:19Z" level=error msg="cr.fluentbit.io/v2/fluent/fluent-bit/manifests/sha256-9b386368a776f8f8a25ee7113ef8f39ae9004d3b6e8a80d0848bd9e37a9c6aae.sig: failed to get manifest response for tag, skipping (404): {\"errors\":[{\"code\":\"MANIFEST_UNKNOWN\",\"message\":\"OCI manifest found, but accept header does not support OCI manifests\"}]}\n" client=

Image of the container is cr.fluentbit.io/fluent/fluent-bit:2.1.9

davidcollom commented 9 months ago

Thanks for raising this issue. I suspect there's little support for OCI registries right now.

Would you happen to have a full Yaml manifest I can deploy to reproduce the error?

jwitko commented 9 months ago

@davidcollom The fluent-bit helm chart is a good example https://github.com/fluent/helm-charts/blob/main/charts/fluent-bit

Does that get you what you're looking for ?

acascais commented 2 months ago

We're having the same issue here. We use Harbor as docker registry

https://github.com/jetstack/version-checker/issues/162#issuecomment-2149091891