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
706 stars 79 forks source link

Add tests for the OCI client #264

Closed ribbybibby closed 2 months ago

ribbybibby commented 2 months ago

Test that the OCI client behaves as expected.

This exposed a bug with single segment repositories like registry.foo.bar:5000/nginx which I've fixed.

In addition to this, I've also modified the client to construct a remote.Puller in New(). This will do helpful things like cache auth per-registry/repository.