This will probably be tagged as v1.x since it changes the API pretty significantly.
Instead of hooking in a Transport/RoundTripper override via options on a remote.Image, the registries type now has its own Image function that tries all the endpoints and returns a remote.Image from the first one that works.
This also adds tests, and fixes some incorrect behavior around endpoint ordering and credentials lookup.
This will probably be tagged as v1.x since it changes the API pretty significantly.
Instead of hooking in a Transport/RoundTripper override via options on a
remote.Image
, the registries type now has its ownImage
function that tries all the endpoints and returns aremote.Image
from the first one that works.This also adds tests, and fixes some incorrect behavior around endpoint ordering and credentials lookup.
When pulled through to RKE2, this should resolve the customer request from https://jira.suse.com/browse/SURE-2987
Signed-off-by: Brad Davidson brad.davidson@rancher.com