Skip to content

Conversation

EyalPazz
Copy link
Member

/kind test
/area conformance-test

Fixes #3921

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/test area/conformance-test Issues or PRs related to Conformance tests. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 24, 2025
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 24, 2025
@EyalPazz
Copy link
Member Author

@robscott If you want to move this test to httproute-hostname-intersection lmk

@EyalPazz
Copy link
Member Author

/retest

@youngnick
Copy link
Contributor

That looks like how this should work, thanks @EyalPazz. I'll leave a conformance reviewer to lgtm though.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: EyalPazz, youngnick

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

The pull request process is described here

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 25, 2025
@rikatz
Copy link
Member

rikatz commented Aug 25, 2025

/assign
No conformance reviewer here :) but I will take a look at this soon


var HTTPRouteHostnamePrecedence = suite.ConformanceTest{
ShortName: "HTTPRouteHostnamePrecedence",
Description: "An HTTPRoute with a specified hostname, and a non-specified one",
Copy link
Member

Choose a reason for hiding this comment

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

Description needs a little more detail. What it does, and what is the expected outcome of the test? Look at an example here:

Description: "A BackendTLSPolicy in the gateway-conformance-infra namespace should update the observedGeneration in all of it's Status.Conditions after an update to the spec",

@rikatz
Copy link
Member

rikatz commented Aug 25, 2025

small comment on the test description, can be fixed on a followup
I will put a hold anyway if you can fix it until tomorrow before code freeze :)
/lgtm
/hold

Thanks!

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Aug 25, 2025
Copy link
Member

@snorwin snorwin left a comment

Choose a reason for hiding this comment

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

I verified the tests using the Airlock Microgateway. However, I’m not sure whether this should be defined as a separate test case or if it would be better integrated into the HTTPRouteHostnameIntersection test.

@EyalPazz
Copy link
Member Author

Yea i'm not sure too, wdyt @robscott

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 26, 2025
@k8s-ci-robot
Copy link
Contributor

New changes are detected. LGTM label has been removed.

@EyalPazz
Copy link
Member Author

fixed the description @rikatz

@rikatz
Copy link
Member

rikatz commented Aug 26, 2025

another pass, lgtm.

Will wait for Rob to answer if this should be moved to the same test as HTTPRouteHostnameIntersection, IMO if this was always specified but never tested, moving to the existing test is better

@robscott
Copy link
Member

Thanks for working on this @EyalPazz! While this looks like a great start, I think we want to be more thorough with the test cases here. For example, in the case where we have *.com and a.com, both may match a request, but a.com should have precedence. We'd need to test variations of this on both Gateway and HTTPRoute levels. @kl52752 has been working on some similar tests for GKE and might have some ideas here.

/cc @kl52752

@k8s-ci-robot k8s-ci-robot requested a review from kl52752 August 26, 2025 21:38
@kl52752
Copy link
Contributor

kl52752 commented Aug 27, 2025

Thanks for working on this @EyalPazz! While this looks like a great start, I think we want to be more thorough with the test cases here. For example, in the case where we have *.com and a.com, both may match a request, but a.com should have precedence. We'd need to test variations of this on both Gateway and HTTPRoute levels. @kl52752 has been working on some similar tests for GKE and might have some ideas here.

/cc @kl52752

+1 to test case suggested by Rob with same length of hostname. Also we need to compare this rule with other precedences like timestamp and verifies that this rule takes precedence over others. https://gateway-api.sigs.k8s.io/reference/spec/#httproutespec

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. area/conformance-test Issues or PRs related to Conformance tests. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/test release-note-none Denotes a PR that doesn't merit a release note. 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.

HTTPRoute Hostname Intersection should include a HTTPRoute with no hostnames
7 participants