Skip to content

add an annotation to the kingress mapping tags to hostnames#16455

Open
dprotaso wants to merge 3 commits intoknative:mainfrom
dprotaso:include-tag-to-host-map
Open

add an annotation to the kingress mapping tags to hostnames#16455
dprotaso wants to merge 3 commits intoknative:mainfrom
dprotaso:include-tag-to-host-map

Conversation

@dprotaso
Copy link
Member

@dprotaso dprotaso commented Mar 13, 2026

Alternate approach to #16439

@knative-prow
Copy link

knative-prow bot commented Mar 13, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 13, 2026
@knative-prow knative-prow bot requested review from dsimansk and skonto March 13, 2026 00:33
@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 13, 2026
@knative-prow
Copy link

knative-prow bot commented Mar 13, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprotaso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 13, 2026
@dprotaso dprotaso force-pushed the include-tag-to-host-map branch from 391cfbf to 44e51cb Compare March 13, 2026 00:34
@dprotaso dprotaso force-pushed the include-tag-to-host-map branch from 44e51cb to f979cca Compare March 13, 2026 00:41
@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 78.78788% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.21%. Comparing base (56f2186) to head (4e398ab).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reconciler/route/resources/ingress.go 80.95% 3 Missing and 1 partial ⚠️
pkg/reconciler/route/domains/domains.go 75.00% 2 Missing ⚠️
pkg/reconciler/route/route.go 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16455      +/-   ##
==========================================
+ Coverage   80.17%   80.21%   +0.04%     
==========================================
  Files         217      217              
  Lines       13520    13534      +14     
==========================================
+ Hits        10839    10856      +17     
+ Misses       2314     2309       -5     
- Partials      367      369       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dprotaso dprotaso marked this pull request as ready for review March 13, 2026 00:48
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 13, 2026
@dprotaso dprotaso changed the title add an annotation to the kingress mapping tags to hostnames [wip] add an annotation to the kingress mapping tags to hostnames Mar 13, 2026
@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 13, 2026
@dprotaso dprotaso changed the title [wip] add an annotation to the kingress mapping tags to hostnames add an annotation to the kingress mapping tags to hostnames Mar 13, 2026
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 13, 2026
@kahirokunn
Copy link
Member

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 13, 2026
Comment on lines +230 to +235
longestDomain := ""
for d := range domains {
if len(longestDomain) < len(d) {
longestDomain = d
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that this works but was wondering whether this is the best solution.
I checked GetDomainsForVisibility which only seems to be used in 3 places in total (1 is a test) - we could return the "primary domain" besides the current domains and have a deterministic choice?
Just a suggestion - I'm also fine with the current approach 😀

/lgtm
/retest
/hold in case you want to change this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done - please take a look

@knative-prow knative-prow bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 13, 2026
@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 14, 2026
@knative-prow
Copy link

knative-prow bot commented Mar 14, 2026

New changes are detected. LGTM label has been removed.

@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants