Skip to content

Hybrid Gateway conformance: enable HTTPRouteSimpleSameNamespace test#3522

Draft
tao12345666333 wants to merge 2 commits intomainfrom
jt/fix-3441
Draft

Hybrid Gateway conformance: enable HTTPRouteSimpleSameNamespace test#3522
tao12345666333 wants to merge 2 commits intomainfrom
jt/fix-3441

Conversation

@tao12345666333
Copy link
Member

What this PR does / why we need it:

Which issue this PR fixes

Fixes #3441

Special notes for your reviewer:

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

  • the CHANGELOG.md release notes have been updated to reflect significant changes

@tao12345666333 tao12345666333 self-assigned this Mar 7, 2026
@tao12345666333 tao12345666333 added this to the KO v2.2.x milestone Mar 7, 2026
@tao12345666333 tao12345666333 marked this pull request as ready for review March 10, 2026 09:26
@tao12345666333 tao12345666333 requested a review from a team as a code owner March 10, 2026 09:26
programmer04
programmer04 previously approved these changes Mar 10, 2026
@tao12345666333 tao12345666333 added this pull request to the merge queue Mar 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 10, 2026
@tao12345666333 tao12345666333 added this pull request to the merge queue Mar 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 10, 2026
@programmer04 programmer04 added this pull request to the merge queue Mar 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 10, 2026
@tao12345666333 tao12345666333 added this pull request to the merge queue Mar 10, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Mar 10, 2026
@tao12345666333 tao12345666333 marked this pull request as draft March 11, 2026 13:54
Per the Gateway API spec, BackendRef Kind defaults to "Service" and
Group defaults to empty when not explicitly set. Previously, nil Kind
or Group fields in BackendRef could cause nil pointer dereferences or
incorrect resolved-refs status conditions.

This commit:
- Defaults Kind to "Service" and Group to "" in BuildResolvedRefsCondition
- Updates IsBackendRefSupported to treat nil/empty Kind as "Service"
- Defaults backendRefKind to "Service" in IsHTTPReferenceGranted
- Adds test coverage for the nil-kind scenarios
- Removes HTTPRouteSimpleSameNamespace from hybrid skipped conformance tests

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
…mpty-string Kind handling

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
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.

Hybrid Gateway conformance: enable HTTPRouteSimpleSameNamespace test

2 participants