Skip to content
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

registry/client: remove uses of APIEndpoint.TrimHostName #5674

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Dec 6, 2024

registry/client: remove uses of APIEndpoint.TrimHostName

This field was added in moby/moby@19515a7, but looks to be always set for endpoints used, so we can trim remote names unconditionally.

This option was added for possible future expansion, allowing registry- mirrors to get the full reference of the image (including domain-name), for them to host a mirror for multiple upstreams on the same registry.

That approach will unlikely be implemented, and containerd has a different approach for this, where the reference to the original registry is passed through a query parameter instead.

vendor: github.com/docker/docker b249c5ebd214 (master, v28.0.0-dev)

full diff: moby/moby@5d72419...b249c5e

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.50%. Comparing base (e554bfe) to head (2a5ac8f).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5674      +/-   ##
==========================================
- Coverage   59.54%   59.50%   -0.04%     
==========================================
  Files         346      346              
  Lines       29376    29371       -5     
==========================================
- Hits        17491    17478      -13     
- Misses      10914    10923       +9     
+ Partials      971      970       -1     

vendor.mod Outdated Show resolved Hide resolved
This field was added in moby/moby@19515a7,
but looks to be always set for endpoints used, so we can trim remote names
unconditionally.

This option was added for possible future expansion, allowing registry-
mirrors to get the full reference of the image (including domain-name),
for them to host a mirror for multiple upstreams on the same registry.

That approach will unlikely be implemented, and containerd has a different
approach for this, where the reference to the original registry is passed
through a query parameter instead.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah marked this pull request as ready for review December 9, 2024 20:57
@thaJeztah thaJeztah merged commit 26526f9 into docker:master Dec 10, 2024
92 checks passed
@thaJeztah thaJeztah deleted the registry_trimname branch December 10, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants