Use registry.localhost in e2e CI workflow#16669
Conversation
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: linkvt The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
8a6f35b to
68f9eb4
Compare
68f9eb4 to
dfff8ed
Compare
go-containerregistry PR knative#2281 (included in v0.21.6) narrowed the insecure HTTP fallback heuristic from *.local to *.localhost only. ko v0.19.0 picked this up via its dependency bump, breaking the e2e workflow's local registry push with: Get "https://registry.local:5000/v2/": http: server gave HTTP response to HTTPS client Rename the registry from registry.local to registry.localhost to match the new heuristic. This aligns with RFC 6761 (*.localhost is the correct domain for loopback services; *.local is mDNS per RFC 6762). Also pass registry-authority to setup-kind so the test job's registry uses the same hostname. Signed-off-by: Vincent Link <vlink@redhat.com>
dfff8ed to
31eedf0
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16669 +/- ##
==========================================
+ Coverage 80.29% 80.35% +0.05%
==========================================
Files 217 217
Lines 13568 13568
==========================================
+ Hits 10895 10902 +7
+ Misses 2308 2304 -4
+ Partials 365 362 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
go-containerregistry PR #2281 (in v0.21.6) narrowed the insecure HTTP fallback from
*.localto*.localhostonly. ko v0.19.0 picked this up, breaking the e2e workflow's local registry push:Renaming the registry from
registry.localtoregistry.localhostfixes this.Might need to cherry-pick this onto release branches in case they also use the latest ko version.
Changes
registry.localtoregistry.localhostin e2e workflowregistry-authoritytosetup-kindto match