-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
re-introduced support for port numbers in docker registry URL #5195
Conversation
Signed-off-by: Carston Schilds <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5195 +/- ##
==========================================
+ Coverage 60.96% 61.43% +0.46%
==========================================
Files 295 298 +3
Lines 20789 20799 +10
==========================================
+ Hits 12674 12777 +103
+ Misses 7198 7109 -89
+ Partials 917 913 -4 |
🤦 Thanks! I missed that #3599 was merged, and looking at my last push there, I suspect I found some local changes that may have been WIP 😞 |
if u.Port() == "" { | ||
return u.Hostname() | ||
} | ||
return u.Hostname() + ":" + u.Port() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we can expect IPv6 addresses, we should probably use netJoinHostPort()
here;
return net.JoinHostPort(u.Hostname(), u.Port())
// should support non-standard port in registry url | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably add some test-cases here for IP-addresses
Actually, ignore my comments for now; I guess we didn't do this in the old code, so we can make those fixes in a follow-up; I opened a follow-up PR; #5196 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if CI is happy, thanks!
@vvoland @laurazard PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- What I did
- How to verify it
docker buildx bake test
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)