-
Notifications
You must be signed in to change notification settings - Fork 490
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
Cross-namespace parentRef
reason for routes accepted condition
#1670
Comments
This is somewhat confusing for me as a beginner. Can you please break it down or provide me some resources to get started in this. Thank you. |
This issue is about adding a new reason to the set of already existing reasons for the gateway-api/apis/v1beta1/shared_types.go Lines 205 to 252 in 7d408be
This reason should be used to express that the Route has not been accepted because it has a ParentRef that references a Gateway in another namespace, but no ReferenceGrant allows such a reference.
Therefore, simply adding the new reason to the API and providing the documentation is the scope of the issue. Such a reason will likely be used in the conformance tests in subsequent PRs. |
gateway-api/apis/v1beta1/shared_types.go Line 212 in 7d408be
In this block there are only three condititons while @mlavacca says that there are four reasons and the extra reason is "NoMatchingParent" gateway-api/apis/v1beta1/shared_types.go Line 280 in 7d408be
Here in place of RefNoPermitted I should change it to accepted. and make changes in docs as well accordingly. right? |
@Sajiyah-Salat The documentation related to the gateway-api/apis/v1beta1/shared_types.go Lines 205 to 221 in 5bc87cf
As you can see, four different reasons can make the |
#1672 |
Hello please close this issue. |
👍 For the future, to make a merging PR automatically close the related issue, you need to write "Fixes #<issue_number>" in the PR description. |
Closing as fixed by #1672 |
Re-opened briefly to properly link the PR, closing again. |
What would you like to be added:
A new
RouteConditionReason
should be added to state that the route is not accepted because a cross-namespace reference is not granted by aReferenceGrant
.We already have a specular reason for the
ResolvedRefs
condition:gateway-api/apis/v1beta1/shared_types.go
Lines 276 to 280 in 7d408be
That should be set in such a case, jointly with a failed
accepted
condition, but no reason for theaccepted
condition is suitable to express it.Why this is needed:
As of now, the *route
Accepted
condition can fail with the following reasons :NotAllowedByListeners
NoMatchingListenerHostname
NoMatchingParent
UnsupportedValue
When a route references a gateway (through a
ParentRef
) in another namespace, and noReferenceGrant
allows such a reference, there is no suitable reason to use for theAccepted
condition to state it as failed.The text was updated successfully, but these errors were encountered: